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.
:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.
CVE-2022-22818 - Medium Severity Vulnerability
Vulnerable Library - Django-3.2.10-py3-none-any.whl
A high-level Python Web framework that encourages rapid development and clean, pragmatic design.
Library home page: https://files.pythonhosted.org/packages/8f/9c/1ba2005b24cdb443eee5a43ebfa427f7915d6ed68f41484244ae21cd558f/Django-3.2.10-py3-none-any.whl
Path to dependency file: /requirements.txt
Path to vulnerable library: /requirements.txt
Dependency Hierarchy: - :x: **Django-3.2.10-py3-none-any.whl** (Vulnerable Library)
Found in HEAD commit: 85f56e10156087bb76d88c8d68df7a3498c64cd7
Found in base branch: main
Vulnerability Details
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.
Publish Date: 2022-02-03
URL: CVE-2022-22818
CVSS 3 Score Details (6.1)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Changed - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: None
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://www.djangoproject.com/weblog/2022/feb/01/security-releases/
Release Date: 2022-02-03
Fix Resolution: Django - 2.2.27,3.2.12,4.0.2
:rescue_worker_helmet: Automatic Remediation is available for this issue