CVE-2026-0672
Medium 6.0 CVSS 4.0
Description
When using http.cookies.Morsel, user-controlled cookie values and parameters can allow injecting HTTP headers into messages. Patch rejects all control characters within cookie names, values, and parameters.
Description as published by the source, in English.
Key facts
- Published
- 2026-01-20
- Last modified
- 2026-06-17
- Assigned by
- cna@python.org
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:- Scored by
- cna@python.org
- Probability of exploitation
-
0.4 %
higher than 33 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Python Software Foundation | CPython | ≥ 0, < 3.10.20 | Affected |
| Python Software Foundation | CPython | ≥ 3.11.0, < 3.11.15 | Affected |
| Python Software Foundation | CPython | ≥ 3.12.0, < 3.12.13 | Affected |
| Python Software Foundation | CPython | ≥ 3.13.0, < 3.13.12 | Affected |
| Python Software Foundation | CPython | ≥ 3.14.0, < 3.14.3 | Affected |
| Python Software Foundation | CPython | ≥ 3.15.0a1, < 3.15.0a6 | Affected |
Weakness type
-
CWE-93: Improper Neutralization of CRLF Sequences
The product uses CRLF (carriage return line feeds) as a special element, e.g. to separate lines or records, but it does not neutralize or incorrectly neutralizes CRLF sequences from inputs.
References
- https://github.com/python/cpython/commit/62700107418eb2cca3fc88da036a243ea975f172
- https://github.com/python/cpython/commit/712452e6f1d4b9f7f8c4c92ebfcaac1705faa440
- https://github.com/python/cpython/commit/7852d72b653fea0199acf5fc2a84f6f8b84eba8d
- https://github.com/python/cpython/commit/918387e4912d12ffc166c8f2a38df92b6ec756ca
- https://github.com/python/cpython/commit/95746b3a13a985787ef53b977129041971ed7f70
- https://github.com/python/cpython/commit/b1869ff648bbee0717221d09e6deff46617f3e85
- https://github.com/python/cpython/issues/143919
- https://github.com/python/cpython/pull/143920
- https://mail.python.org/archives/list/security-announce@python.org/thread/6VFLQQEIX673KXK…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.