CVE-2026-1299

email BytesGenerator header injection due to unquoted newlines

State
Published
Severity
6.0 Medium
Published
Jan 23, 2026
Updated
Mar 3, 2026
Reserved
Jan 21, 2026

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
4.06.0 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:NPSF

Weaknesses

Affected Products

ProductVersions
CPythonPython Software Foundation
  • before 3.10.20Affected
  • 3.11.0 to before 3.11.15Affected
  • 3.12.0 to before 3.12.13Affected
  • 3.13.0 to before 3.13.12Affected
  • 3.14.0 to before 3.14.3Affected
  • 3.15.0a1 to before 3.15.0a6Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.