CVE-2021-42134 Cross-site Scripting in django-unicorn

Medium 6.1 Published Updated

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

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

What is CVE-2021-42134?

CVE-2021-42134 is a medium-severity cross-site scripting vulnerability in n/a, published on 11 Oct 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

The Unicorn framework before 0.36.1 for Django allows XSS via a component. NOTE: this issue exists because of an incomplete fix for CVE-2021-42053.

Weakness: CWE-79

Which versions are affected by CVE-2021-42134?

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

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

Products include Django-Unicorn Unicorn.

How do I fix CVE-2021-42134?

Upgrade django-unicorn to 0.36.1 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-42134 being exploited?

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

Sources

Also known as GHSA-ggmv-6q9p-9gm6, PYSEC-2021-369.

Is CVE-2021-42134 in your software?

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

Check your SBOMs for free