CVE-2025-15282: Header injection via newlines in data URL mediatype
User-controlled data URLs parsed by urllib.request.DataHandler allow injecting headers through newlines in the data URL mediatype.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/pypy3to a version that resolves this vulnerability.Fixed in 7.3.21+dfsg-1 - Upgrade
Upgrade
debian/python3.11to a version that resolves this vulnerability.Fixed in 3.11.2-6+deb12u7 - Upgrade
Upgrade
debian/python3.13to a version that resolves this vulnerability.Fixed in 3.13.5-2+deb13u1 - Upgrade
Upgrade
debian/python3.14to a version that resolves this vulnerability.Fixed in 3.14.3-1 - Upgrade
Upgrade
debian/pypy3to a version that resolves this vulnerability.Fixed in 8.0.1+dfsg-1 - Upgrade
Upgrade
debian/python3.11to a version that resolves this vulnerability.Fixed in 3.11.2-6+deb12u8Fixed in 3.11.2-6+deb12u9 - Upgrade
Upgrade
debian/python3.13to a version that resolves this vulnerability.Fixed in 3.13.5-2+deb13u5Fixed in 3.13.18-1 - Upgrade
Upgrade
debian/python3.14to a version that resolves this vulnerability.Fixed in 3.14.10-1
Event History
Frequently Asked Questions
What is the severity of CVE-2025-15282?
CVE-2025-15282 is considered a moderate severity vulnerability due to its potential to allow header injection via user-controlled data URLs.
How do I fix CVE-2025-15282?
To fix CVE-2025-15282, ensure you sanitize user input that may be used in data URLs by stripping out any newline characters.
What kind of attack can CVE-2025-15282 facilitate?
CVE-2025-15282 can facilitate attacks that involve injecting malicious headers into HTTP requests through manipulated data URLs.
Which software is affected by CVE-2025-15282?
CVE-2025-15282 affects the urllib library in Python, particularly its DataHandler functionality.
Is CVE-2025-15282 still exploitable in the latest versions?
As of now, the vulnerability CVE-2025-15282 may still be exploitable if proper input validation measures are not implemented in the affected software.