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

Source: https://junglewise.ai/threats/cve-2021-42134-cross-site-scripting-in-django-unicorn  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-10-11  
License: CC BY 4.0 with a link back

CVE-2021-42134 · Severity: low · CVSS 3.1 · Published 2021-10-11

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.

Technologies: [django-unicorn (PyPI)](https://junglewise.ai/threats/technologies/django-unicorn). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2021-42134 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-42134 being exploited in the wild.

**How severe is CVE-2021-42134?** Low severity, with a CVSS score of 3.1, published 11 October 2021.

**Which products and versions are affected?** django-unicorn (PyPI) ECOSYSTEM:introduced=0,fixed=0.36.1, GIT:introduced=0,fixed=3a832a9e3f6455ddd3b87f646247269918ad10c6|ECOSYSTEM:introduced=0,fixed=0.36.1.

**Is there a fix for CVE-2021-42134?** Yes. django-unicorn (PyPI): upgrade to 0.36.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-42134?** Check whether you run django-unicorn (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- django-unicorn (PyPI): upgrade to 0.36.1 or later

  ```sh
  pip install "django-unicorn>=0.36.1"
  ```


## Affected products

- django-unicorn (PyPI) ECOSYSTEM:introduced=0,fixed=0.36.1, GIT:introduced=0,fixed=3a832a9e3f6455ddd3b87f646247269918ad10c6|ECOSYSTEM:introduced=0,fixed=0.36.1

## Identifiers

- CVE-2021-42134
- GHSA-ggmv-6q9p-9gm6
- PYSEC-2021-369

## Related threats

- [PYSEC-2026-2451 - django-unicorn affected by component state manipulation via unvalidated attribute access](https://junglewise.ai/threats/cve-2026-31815-django-unicorn-affected-by-component-state-manipulation-via)
- [Django-Unicorn Class Pollution Vulnerability, Leading to XSS, DoS and Authentication Bypass](https://junglewise.ai/threats/cve-2025-24370-django-unicorn-class-pollution-vulnerability-leading-to-xss-dos)
- [PYSEC-2021-357 - The Unicorn framework through 0.35.3 for Django allows XSS via component.name.](https://junglewise.ai/threats/cve-2021-42053-cross-site-scripting-in-unicorn-framework)
