VDB

CVE-2022-22818

CVE-2022-22818 PUBLISHED CVSS 6.099999904632568 MEDIUM

Cross-site Scripting in Django

Reported by mitre · Published February 3, 2022

django is fixed in 4.0.2, 3.2.12 and 2.2.27 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
djangoPyPI4.0.2, 3.2.12, 2.2.27
python-djangoArch Linux4.0.2-1
djangoBitnami4.0.2, 3.2.12, 2.2.27
djangodjangoproject4.0.2, 3.2.12, 2.2.27

Risk scores

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

Affected products

VendorProductVersions
n/an/an/a
archpython-django0
n/an/a*
PyPIDjango2.2, 3.2, 4.0
alpinepy3-django0

Timeline

  • Feb 1, 2022 CVE Published
  • Feb 8, 2022 EPSS Score (30 in total, the first dated here)
  • Sep 20, 2024 CVE Updated
  • Mar 9, 2026 Security Advisory (21 in total, the first dated here)
  • Mar 20, 2026 Distribution Patch (18 in total, the first dated here)
  • Jul 6, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-22818
vulnetix vdb fixes CVE-2022-22818

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-22818/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›