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.0MEDIUMScore: 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.1MEDIUMScore: 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • v2.0MEDIUMScore: 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-79Improper 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

  • debiandebian_linux

    11.0

  • djangoprojectdjango

    ≥ 2.2, < 2.2.27 | ≥ 3.2, < 3.2.12 | ≥ 4.0, < 4.0.2

  • fedoraprojectfedora

    35

  • PyPIdjango

    ≥ 2.2, < 2.2.27 | ≥ 3.2, < 3.2.12 | ≥ 4.0, < 4.0.2

References (18)