← CVE Intelligence

CVE-2026-1299

email BytesGenerator header injection due to unquoted newlines PUBLISHED

Description (CNA)

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 (CNA)

Vendor / productVersions
Python Software Foundation / CPythonaffected 0 before 3.10.20; affected 3.11.0 before 3.11.15; affected 3.12.0 before 3.12.13; affected 3.13.0 before 3.13.12; affected 3.14.0 before 3.14.3; affected 3.15.0a1 before 3.15.0a6

CWE

CWE-93

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.