XSS in Djangoproject Django
CVE-2022-22818
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.034, 88.9th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Djangoproject Django
- Debian Linux — versions 11.0
- Fedoraproject Fedora — versions 35
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- Prikalel/django-xss-example (3 stars, last pushed 2023-06-02): This repo reproduce xss attack on django 4.0.1 (see CVE-2022-22818)
Also mentioned in 9 other repositories (20142995/nuclei-templates, ARPSyndicate/cvemon, cyb3r-w0lf/nuclei-template-collection, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- groups.google.com/forum/
- docs.djangoproject.com/en/4.0/releases/security/ (Patch, Third Party Advisory)
- www.djangoproject.com/weblog/2022/feb/01/security-releases/ (Exploit, Patch, Third Party Advisory)
- FEDORA-2022-e7fd530688 (vendor-advisory)
- security.netapp.com/advisory/ntap-20220221-0003/ (Third Party Advisory)
- DSA-5254 (vendor-advisory, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.