published 23 Jan 2026 · updated 16 Nov 2026
email BytesGenerator header injection due to unquoted newlines
6.0MediumCVSS 6.0EPSS 1%
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 3.10.20, 3.11.15, 3.12.13 and 3 more.
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".
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Python Software Foundation | <3.10.20, >=3.11.0 <3.11.15, >=3.12.0 <3.12.13, >=3.13.0 <3.13.12, >=3.14.0 <3.14.3, >=3.15.0a1 <3.15.0a6 | 3.10.20, 3.11.15, 3.12.13, 3.13.12, 3.14.3, 3.15.0a6 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket