Feed
6.1MEDIUM

CVE-2021-32052Header injection possible in Django

A medium-severity vulnerability reachable over the network, needing no privileges and user interaction. EPSS estimates a 2.7% chance of exploitation in the next 30 days. A fixed version is named.

Exploited in the wild
Not in KEV
EPSS
2.7%
percentile 87%
Priority
21/100 low
how it is computed
Fix
Named by a source
CVE published 6 May 2021

Reference

None of the "Needs attention" rules apply right now.

EPSS 2.7% (+3) · Network attack vector (+10) · No privileges required (+5)

Immediate actions

Who should check

  • django (PyPI) pkg:pypi/django

    • Affected>= 2.2, < 2.2.22Fixed in2.2.22OSV (PYSEC-2021-8)
    • Affected>= 3.1, < 3.1.10Fixed in3.1.10OSV (PYSEC-2021-8)
    • Affected>= 3.2, < 3.2.2Fixed in3.2.2OSV (PYSEC-2021-8)

Confirmed facts

CVSS
6.1 MEDIUM (version 3.1)
Score from
GitHub Advisory Database (GHSA-qm57-vhq3-3fwf)
Attack vector
network
Attack complexity
low
Privileges required
none
User interaction
required
Weakness
CWE-79, CWE-88

Unknowns

  • We show one CVSS score. Other sources may score this CVE differently.

Advisory text

Quoted from the source advisory (untrusted)In Django 2.2 before 2.2.22, 3.1 before 3.1.10, and 3.2 before 3.2.2 (with Python 3.9.5+), URLValidator does not prohibit newlines and tabs (unless the URLField form field is used). If an application uses values with newlines in an HTTP response, header injection can occur. Django itself is unaffected because HttpResponse prohibits newlines in HTTP headers.

Update history

No events recorded. Our history starts on 1 Jan 2025.

References

Sources

This page is our own presentation: records are shortened, normalised and merged. Licences

Last checked: kev 38 min ago · osv 38 min ago · nvd 7 min ago · epss 38 min ago · JSON · ask via MCP: explain_vulnerability

Also known as BIT-django-2021-32052, GHSA-qm57-vhq3-3fwf, PYSEC-2021-8