CVE-2022-22818

MEDIUMCVSS 6.1/10EPSS 3.33%

Last modified

CVE-2022-22818 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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.. EPSS estimates a 3.33% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
6.1/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

EPSS Probability
3.33%

87.1th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
DjangoprojectDjango>= 2.2, < 2.2.27
DjangoprojectDjango>= 3.2, < 3.2.12
DjangoprojectDjango>= 4.0, < 4.0.2
FedoraprojectFedora35
DebianDebian Linux11.0

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is 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.
How severe is CVE-2022-22818?
CVE-2022-22818 has a CVSS score of 6.1/10 (MEDIUM severity). The EPSS model estimates a 3.33% probability of exploitation in the next 30 days.
How do I fix CVE-2022-22818?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2022-22818?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST