Skip to main content
MEDIUM

CVE-2022-22818

CVSS v3

6.1

MEDIUM

EPSS Score

3.4 %

exploit probability, as of 2026-10-12

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for django. Watch django in CVE Watch Free account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • djangoPyPIfrom 2.2 · fixed in 2.2.27
  • djangoBitnamifrom 2.2.0 · fixed in 2.2.27

Vendor advisories

  • CVE-2022-22818 Red Hat Product Security9 products fixed · 20 known affected

    django: Possible XSS via '{% debug %}' template tag

    python-django as a component of Red Hat Ansible Automation Platform 1.2 · python-django as a component of Red Hat Ansible Automation Platform 2 · django as a component of Red Hat Ansible Tower 3

  • RHSA-2022:8872 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Red Hat OpenStack Platform 16.1.9 (python-django20) security update

  • RHSA-2022:8853 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Red Hat OpenStack Platform 16.2.4 (python-django20) security update

  • RHSA-2022:8506 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Satellite 6.12 Release

  • RHSA-2022:5498 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Satellite 6.11 Release

Full record on NVD

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.

Technical details

Published
2022-02-03

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.

Is CVE-2022-22818 actively exploited?

Active exploitation of CVE-2022-22818 has not been confirmed. Its EPSS score was 3.4% on 2026-10-12, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-22818?

CVE-2022-22818 has a CVSS v3 base score of 6.1 (MEDIUM severity).

Running django? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE Watch

No credit card required · 50 free checks/month · Free API key