CVE-2021-42053 Cross-site scripting in Unicorn framework

Medium 5.4 Published Updated

Cross-site scripting vulnerability in the Unicorn framework for Django allows attackers to inject malicious scripts via component names.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-42053?

CVE-2021-42053 is a medium-severity cross-site scripting vulnerability in n/a, published on 7 Oct 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

The Unicorn framework through 0.35.3 for Django allows XSS via component.name.

Weakness: CWE-79

Which versions are affected by CVE-2021-42053?

3 open source packages ship an affected version, including django-unicorn. It affects 1 product.

PackageAffectedFixed in
django-unicorn PyPIAll versions0.36.0
django-unicorn PyPIAll versions0.36.0
django-unicorn PyPIAll versions0.36.0

Products include Django-Unicorn Unicorn.

How do I fix CVE-2021-42053?

Upgrade django-unicorn to 0.36.0 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2021-42053 being exploited?

There is no known exploitation of CVE-2021-42053 in the wild and no public exploit code.

Public exploit code: 1 Exploit-DB entry.

Sources

Also known as GHSA-c87f-fq5g-63r2, PYSEC-2021-357.

Is CVE-2021-42053 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free