# 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.

- **Severity:** Medium 6.0 (`CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:L/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 20 Jan 2026
- **Updated:** 3 Mar 2026
- **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, GHSA-6rv6-r2f2-gqrc, MINI-97x6-jwvg-gpjj, MINI-fcm2-rc49-rv69, MINI-ggmq-rhqq-jcxx, MINI-mg8c-6mjr-95cq, MINI-v3p2-j7f9-h7gf, PSF-2026-2, UBUNTU-CVE-2025-15282, USN-8018-3

## 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 (Improper Neutralization of CRLF Sequences)

## Which versions are affected by CVE-2025-15282?

3 open source packages ship an affected version, including libpython, python and python-min.


| Package | Ecosystem | 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.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-15282 and fix it if it is affected.

What it is: 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.
Exploitation: There is no known exploitation of CVE-2025-15282 in the wild and no public exploit code.

Affected packages and fixed versions:
- libpython (Bitnami): affected all versions; fixed in 3.10.20, 3.11.15, 3.12.13, 3.13.12, 3.14.3
- python (Bitnami): affected all versions; fixed in 3.10.20, 3.11.15, 3.12.13, 3.13.12, 3.14.3
- python-min (Bitnami): affected all versions; fixed in 3.10.20, 3.11.15, 3.12.13, 3.13.12, 3.14.3

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-15282/ (Markdown: https://insights.sbomify.com/CVE-2025-15282/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-15282
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-15282
- OSV: https://osv.dev/vulnerability/CVE-2025-15282

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-15282/
Summaries are generated and may contain mistakes; the official description above is the record.
