CVE-2022-22818
Aliases:GHSA-95rw-fx8r-36v6BIT-django-2022-22818PYSEC-2022-19
Advisory lineage Upstream: 0 Downstream: 19
Modified
Published: 03 Feb 2022, 00:00
Last modified:03 Aug 2024, 03:21
Vulnerability Summary
Overall Risk (default)
medium
35/100 CVSS Score
6.1 MEDIUM
v3.1 (nvd)
EPSS Score
0.55% LOW
1% probability -0.46%
KEV
Not listed
Ransomware
No reports
Public exploits
1 found
Dark Web
Not detected
Timeline
03 Feb 2022, 00:00
Published
Vulnerability first disclosed
03 Aug 2024, 03:21
Last Modified
Vulnerability information updated
Description
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 Metrics
- v4.0•MEDIUM•Score: 5.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- v3.1•MEDIUM•Score: 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- v2.0•MEDIUM•Score: 4.3AV:N/AC:M/Au:N/C:N/I:P/A:N
EPSS Trends
Current EPSS score: 0.55%• Percentile: 68%
Techniques & Countermeasures
- CWE-79•Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Affected Systems
- debian•debian_linux
11.0
- djangoproject•django
≥ 2.2, < 2.2.27 | ≥ 3.2, < 3.2.12 | ≥ 4.0, < 4.0.2
- fedoraproject•fedora
35
- PyPI•django
≥ 2.2, < 2.2.27 | ≥ 3.2, < 3.2.12 | ≥ 4.0, < 4.0.2
References (18)
- https://groups.google.com/forum/#%21forum/django-announce
- https://docs.djangoproject.com/en/4.0/releases/security/
- https://www.djangoproject.com/weblog/2022/feb/01/security-releases/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/
- https://security.netapp.com/advisory/ntap-20220221-0003/
- https://www.debian.org/security/2022/dsa-5254
- https://nvd.nist.gov/vuln/detail/CVE-2022-22818
- https://github.com/django/django/commit/01422046065d2b51f8f613409cad2c81b39487e5
- https://github.com/django/django/commit/1a1e8278c46418bde24c86a65443b0674bae65e2
- https://github.com/django/django/commit/c27a7eb9f40b64990398978152e62b6ff839c2e6
- https://docs.djangoproject.com/en/4.0/releases/security
- https://github.com/advisories/GHSA-95rw-fx8r-36v6
- https://github.com/django/django
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-19.yaml
- https://groups.google.com/forum/#!forum/django-announce
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV
- https://security.netapp.com/advisory/ntap-20220221-0003
- https://www.djangoproject.com/weblog/2022/feb/01/security-releases