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

- Severity: Medium 5.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.52%, higher than 85% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-10-07T05:21:05.000Z
- Modified: 2026-06-17T04:09:13.840Z
- Also known as: GHSA-c87f-fq5g-63r2, PYSEC-2021-357
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- django-unicorn (PyPI): before 0.36.0
- django-unicorn unicorn: up to 0.35.3

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <http://packetstormsecurity.com/files/164442/django-unicorn-0.35.3-Cross-Site-Scripting.html> (exploit, third-party-advisory, web)
- <https://github.com/adamghill/django-unicorn/pull/288/files> (patch, third-party-advisory, web)
- <https://github.com/adamghill/django-unicorn/compare/0.35.3...0.36.0> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-42053> (advisory)
- <https://github.com/adamghill/django-unicorn/pull/288> (web)
- <https://github.com/adamghill/django-unicorn/commit/aa5b9835d946bd9893ef02e556859e3ea62cc5e2> (web)
- <https://github.com/adamghill/django-unicorn> (package)
- <https://github.com/advisories/GHSA-c87f-fq5g-63r2> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django-unicorn/PYSEC-2021-357.yaml> (web)

## Sources

- CVE List: [CVE-2021-42053](https://www.cve.org/CVERecord?id=CVE-2021-42053), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-c87f-fq5g-63r2](https://github.com/advisories/GHSA-c87f-fq5g-63r2), CC-BY-4.0, modified 2024-09-16
- NVD: [CVE-2021-42053](https://nvd.nist.gov/vuln/detail/CVE-2021-42053), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-357](https://osv.dev/vulnerability/PYSEC-2021-357), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-42053 · Whole record: https://cve.day/CVE-2021-42053.json · Rebuilt by cve.day 2026-11-25T22:58:04.359Z
