Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐍
🐍 PyPI
Not in CISA KEV
MEDIUM severity

Cross-site Scripting in DjangoGHSA-95rw-fx8r-36v6

MEDIUMFix: django/django@0142204

GHSA-95rw-fx8r-36v6 is a medium-severity (CVSS 6.1) Cross-site Scripting (XSS) vulnerability in django. 3 public exploit references exist, so weaponization risk is real. A fix is available for django — see the affected versions and patch details below.

Also known asBIT-django-2022-22818CVE-2022-22818PYSEC-2022-19
Published
Updated
Affected
3 pkgs
Patched
3 / 3
Exploits
3 known
Exploitation data as of Oct 13, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
3.4%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs88th percentile — riskier than 88% of all scored CVEsHighest risk
0.00%1.39%2.79%4.18%0.6%3.4%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

GHSA-95rw-fx8r-36v6 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 386,684 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

3 pkgs affected
🐍django🐍django🐍django

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.

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.

Affected Packages

3 total 3 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPIdjango≥ 2.2&&< 2.2.272.2.27pip install --upgrade 'django==2.2.27'
🐍PyPIdjango≥ 3.2&&< 3.2.123.2.12pip install --upgrade 'django==3.2.12'
🐍PyPIdjango≥ 4.0&&< 4.0.24.0.2pip install --upgrade 'django==4.0.2'

Affected Products

3 products · 5 configurations
OS
debian linuxdebian
1 version
11.0
Application
djangodjangoproject
≥ 4.0 && < 4.0.2
range
OS
fedorafedoraproject
1 version
35
Exploits & PoCs
3

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for django, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update django to 2.2.27 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-95rw-fx8r-36v6 is resolved across your whole dependency graph.

  3. Workarounds

    Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate
ProductFixed inAdvisory
Red Hat OpenStack Platform 16.1python-django20-0:2.0.13-18.el8ostRHSA-2022:8872
Red Hat OpenStack Platform 16.2python-django20-0:2.0.13-18.el8ostRHSA-2022:8853
Red Hat Satellite 6.11 for RHEL 8python-django-0:3.2.13-1.el8pcRHSA-2022:5498
Red Hat Satellite 6.12 for RHEL 8python-django-0:3.2.14-2.el8pcRHSA-2022:8506

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is GHSA-95rw-fx8r-36v6 in your dependencies?

Find it across PyPI, including transitive dependencies.

Cross-site Scripting in Django (Medium 6.1)