CVE-2026-1299email BytesGenerator header injection due to unquoted newlines
- 6.0MediumCVSS base score
- 0.57%Exploitation in 30 daysEPSS · top 52% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
The email module, specifically the "BytesGenerator" class, didn’t properly quote newlines for email headers when serializing an email message allowing for header injection when an email is serialized. This is only applicable if using "LiteralHeader" writing headers that don't respect email folding rules, the new behavior will reject the incorrectly folded headers in "BytesGenerator".
Timeline
ID reserved
By PSF
- 2 days later
· 2 days later
Published
- 39 days later
· 39 days later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| PSFCNA (assigner) | 4.0 | Medium6.0 | 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 |
| NVDNVD · Deferred | 4.0 | Medium6.0 | 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:X/V:X/RE:X/U:X |
- EPSS (exploitation in 30 days)
- 0.57% · top 52% of all CVEs (22 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.0.
Affected products
Python Software Foundation · CPython
- affected < 3.10.20
- affected 3.11.0 – < 3.11.15
- affected 3.12.0 – < 3.12.13
- affected 3.13.0 – < 3.13.12
- affected 3.14.0 – < 3.14.3
- affected 3.15.0a1 – < 3.15.0a6
References
References10
- https://github.com/python/cpython/pull/144126 (opens in a new tab)patch
- https://github.com/python/cpython/issues/144125 (opens in a new tab)issue-tracking
- https://cve.org/CVERecord?id=CVE-2024-6923 (opens in a new tab)related
- https://mail.python.org/archives/list/[email protected]/thread/6ZZULGALJTITEAGEXLDJE2C6FORDXPBT/ (opens in a new tab)vendor-advisory
- https://github.com/python/cpython/commit/052e55e7d44718fe46cbba0ca995cb8fcc359413 (opens in a new tab)patch
- https://github.com/python/cpython/commit/0a925ab591c45d6638f37b5e57796f36fa0e56d8 (opens in a new tab)patch
- https://github.com/python/cpython/commit/7877fe424415bc4a13045e62a90a7277413d8cb9 (opens in a new tab)patch
- https://github.com/python/cpython/commit/842ce19a0c0b58d61591e8f6a708c38db1fb94e4 (opens in a new tab)patch
- https://github.com/python/cpython/commit/8cdf6204f4ae821f32993f8fc6bad0d318f95f36 (opens in a new tab)patch
- https://github.com/python/cpython/commit/e417f05ad77a4c30ddc07f99e90fc0cef43e831a (opens in a new tab)patch
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-4272 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-1299)Record last updated .