Vulnerability Name:

CVE-2022-22818 (CCN-218551)

Assigned:2022-02-01
Published:2022-02-01
Updated:2022-11-07
Summary:The {% debug %} template tag in Django 2.2 before 2.2.27, 3.2 before 3.2.12, and 4.0 before 4.0.2 does not properly encode the current context. This may lead to XSS.
CVSS v3 Severity:6.1 Medium (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
5.3 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): None
7.2 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N)
6.3 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): None
CVSS v2 Severity:4.3 Medium (CVSS v2 Vector: AV:N/AC:M/Au:N/C:N/I:P/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): Partial
Availibility (A): None
6.4 Medium (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): None
Vulnerability Type:CWE-79
Vulnerability Consequences:Cross-Site Scripting
References:Source: MITRE
Type: CNA
CVE-2022-22818

Source: MISC
Type: Patch, Third Party Advisory
https://docs.djangoproject.com/en/4.0/releases/security/

Source: XF
Type: UNKNOWN
django-cve202222818-xss(218551)

Source: MISC
Type: Issue Tracking, Mailing List, Third Party Advisory
https://groups.google.com/forum/#!forum/django-announce

Source: FEDORA
Type: Mailing List, Vendor Advisory
FEDORA-2022-e7fd530688

Source: CCN
Type: oss-sec Mailing List, Tue, 1 Feb 2022 09:05:38 +0100
Django: CVE-2022-22818: Possible XSS via {% debug %} template tag

Source: CONFIRM
Type: Third Party Advisory
https://security.netapp.com/advisory/ntap-20220221-0003/

Source: DEBIAN
Type: Third Party Advisory
DSA-5254

Source: CCN
Type: Django Web site
Django security releases issued: 4.0.2, 3.2.12, and 2.2.27

Source: CONFIRM
Type: Exploit, Patch, Third Party Advisory
https://www.djangoproject.com/weblog/2022/feb/01/security-releases/

Vulnerable Configuration:Configuration 1:
  • cpe:/a:djangoproject:django:*:*:*:*:*:*:*:* (Version >= 3.2 and < 3.2.12)
  • OR cpe:/a:djangoproject:django:*:*:*:*:*:*:*:* (Version >= 4.0 and < 4.0.2)
  • OR cpe:/a:djangoproject:django:*:*:*:*:*:*:*:* (Version >= 2.2 and < 2.2.27)

  • Configuration 2:
  • cpe:/o:fedoraproject:fedora:35:*:*:*:*:*:*:*

  • Configuration 3:
  • cpe:/o:debian:debian_linux:11.0:*:*:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:djangoproject:django:2.2:*:*:*:*:*:*:*
  • OR cpe:/a:djangoproject:django:3.2:-:*:*:*:*:*:*
  • OR cpe:/a:djangoproject:django:4.0:-:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    BACK
    djangoproject django *
    djangoproject django *
    djangoproject django *
    fedoraproject fedora 35
    debian debian linux 11.0
    djangoproject django 2.2
    djangoproject django 3.2 -
    djangoproject django 4.0 -