NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐍
🐍 PyPI
Not in CISA KEV
MEDIUM severity

CVE-2021-42053 — django-unicorn

MEDIUMFix: adamghill/django-unicorn#288

CVE-2021-42053 is a medium-severity (CVSS 5.4) Cross-site Scripting (XSS) vulnerability in django-unicorn. 2 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for django-unicorn — see the affected versions and patch details below.

Cross-site scripting in Unicorn framework

Also known asGHSA-c87f-fq5g-63r2PYSEC-2021-357
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
2 known
Exploitation data as of Nov 9, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
2.5%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs85th percentile — riskier than 85% of all scored CVEsHighest risk
0.00%1.06%2.13%3.19%0.3%2.5%May 26Sep 26Nov 26

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

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

1 pkg affected
🐍django-unicorn

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 Unicorn framework through 0.35.3 for Django allows XSS via component.name.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPIdjango-unicornall versions0.36.0pip install --upgrade 'django-unicorn==0.36.0'

Affected Products

1 product · 1 configurations
Application
unicorndjango-unicorn
≤ 0.35.3
range
Exploits & PoCs
2

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

EDB-50393webappspython

django-unicorn 0.35.3 - Stored Cross-Site Scripting (XSS)

by Raven Security Associates · Oct 8, 2021

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-unicorn, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update django-unicorn to 0.36.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-42053 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.

Frequently Asked Questions

The Unicorn framework through 0.35.3 for Django allows XSS via component.name.
O3 Security · Impact-Aware SCA

Is CVE-2021-42053 in your dependencies?

Find it across PyPI, including transitive dependencies.

CVE-2021-42053: django-unicorn XSS — Fixed in 0.36.0