Feed
6.1MEDIUM
CVE-2022-22818Cross-site Scripting in Django
A medium-severity vulnerability reachable over the network, needing no privileges and user interaction. EPSS estimates a 2.8% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 2.8%
- percentile 87%
- Fix
- Named by a source
- CVE published 3 Feb 2022
Reference
None of the "Needs attention" rules apply right now.
EPSS 2.8% (+3) · Network attack vector (+10) · No privileges required (+5)
Immediate actions
- django (PyPI): upgrade to 2.2.27 / 3.2.12 / 4.0.2 or later on your release line.
- Commit / pull request: https://github.com/django/django/commit/01422046065d2b51f8f613409cad2c81b39487e5
- Commit / pull request: https://github.com/django/django/commit/1a1e8278c46418bde24c86a65443b0674bae65e2
- Commit / pull request: https://github.com/django/django/commit/c27a7eb9f40b64990398978152e62b6ff839c2e6
Who should check
django (PyPI) pkg:pypi/django
- Affected>= 2.2, < 2.2.27Fixed in2.2.27OSV (PYSEC-2022-19)
- Affected>= 3.2, < 3.2.12Fixed in3.2.12OSV (PYSEC-2022-19)
- Affected>= 4.0, < 4.0.2Fixed in4.0.2OSV (PYSEC-2022-19)
Confirmed facts
- CVSS
- 6.1 MEDIUM (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-95rw-fx8r-36v6)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- required
- Weakness
- CWE-79
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-22818
- commit / pull requesthttps://github.com/django/django/commit/01422046065d2b51f8f613409cad2c81b39487e5
- commit / pull requesthttps://github.com/django/django/commit/1a1e8278c46418bde24c86a65443b0674bae65e2
- commit / pull requesthttps://github.com/django/django/commit/c27a7eb9f40b64990398978152e62b6ff839c2e6
- otherhttps://docs.djangoproject.com/en/4.0/releases/security
- advisoryhttps://github.com/advisories/GHSA-95rw-fx8r-36v6
- otherhttps://github.com/django/django
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-19.yaml
- otherhttps://groups.google.com/forum/#!forum/django-announce
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV
- otherhttps://security.netapp.com/advisory/ntap-20220221-0003
- otherhttps://www.debian.org/security/2022/dsa-5254
- otherhttps://www.djangoproject.com/weblog/2022/feb/01/security-releases
- otherhttps://docs.djangoproject.com/en/4.0/releases/security/
- otherhttps://www.djangoproject.com/weblog/2022/feb/01/security-releases/
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-95rw-fx8r-36v6 (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2022-19 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 17 min ago · osv 16 min ago · nvd 77 min ago · epss 16 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-django-2022-22818, GHSA-95rw-fx8r-36v6, PYSEC-2022-19