Vulnerabilities

CVE-2026-1299

Medium 6.0 CVSS 4.0

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

Description as published by the source, in English.

Key facts

Published
2026-01-23
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.6 % higher than 43 % 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

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities