CVE-2026-1299

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

No CVSS.

Configurations

No configuration.

History

15 Apr 2026, 00:35

Type Values Removed Values Added
Summary
  • (es) El módulo de correo electrónico, específicamente la clase 'BytesGenerator', no escapaba correctamente los saltos de línea para los encabezados de correo electrónico al serializar un mensaje de correo electrónico, lo que permitía la inyección de encabezados cuando se serializa un correo electrónico. Esto solo es aplicable si se utiliza 'LiteralHeader' para escribir encabezados que no respetan las reglas de plegado de correo electrónico; el nuevo comportamiento rechazará los encabezados plegados incorrectamente en 'BytesGenerator'.

13 Feb 2026, 17:16

Type Values Removed Values Added
References
  • () https://github.com/python/cpython/commit/e417f05ad77a4c30ddc07f99e90fc0cef43e831a -

26 Jan 2026, 15:16

Type Values Removed Values Added
References
  • () https://github.com/python/cpython/commit/0a925ab591c45d6638f37b5e57796f36fa0e56d8 -
  • () https://github.com/python/cpython/commit/7877fe424415bc4a13045e62a90a7277413d8cb9 -
  • () https://github.com/python/cpython/commit/842ce19a0c0b58d61591e8f6a708c38db1fb94e4 -
  • () https://github.com/python/cpython/commit/8cdf6204f4ae821f32993f8fc6bad0d318f95f36 -

23 Jan 2026, 17:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-01-23 17:16

Updated : 2026-04-15 00:35


NVD link : CVE-2026-1299

Mitre link : CVE-2026-1299

CVE.ORG link : CVE-2026-1299


JSON object : View

Products Affected

No product.

CWE
CWE-93

Improper Neutralization of CRLF Sequences ('CRLF Injection')