CVE-2025-15282 Header injection via newlines in data URL mediatype
Attackers can inject HTTP headers via newlines in data URL mediatypes when using urllib.request.DataHandler, potentially bypassing security controls.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-15282?
CVE-2025-15282 is a medium-severity vulnerability in CPython, published on 20 Jan 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
User-controlled data URLs parsed by urllib.request.DataHandler allow injecting headers through newlines in the data URL mediatype.
Weakness: CWE-93
Which versions are affected by CVE-2025-15282?
3 open source packages ship an affected version, including libpython, python and python-min.
| Package | Affected | Fixed in |
|---|---|---|
libpython Bitnami | All versions | 3.10.20, 3.11.15, 3.12.13, 3.13.12, 3.14.3 |
python Bitnami | All versions | 3.10.20, 3.11.15, 3.12.13, 3.13.12, 3.14.3 |
python-min Bitnami | All versions | 3.10.20, 3.11.15, 3.12.13, 3.13.12, 3.14.3 |
How do I fix CVE-2025-15282?
Upgrade libpython to a fixed version for your release line: 3.10.20, 3.11.15, 3.12.13 or 3.13.12.
Is CVE-2025-15282 being exploited?
There is no known exploitation of CVE-2025-15282 in the wild and no public exploit code.
Sources
Also known as BELL-CVE-2025-15282, BIT-libpython-2025-15282, BIT-python-2025-15282, BIT-python-min-2025-15282, DEBIAN-CVE-2025-15282, ECHO-c06a-d4e1-7228 and 9 more.