CRLF injection in Python - CVE-2026-1299

 

CRLF injection in Python - CVE-2026-1299

Published: February 13, 2026


Vulnerability identifier: #VU122817
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/E:U/U:Green
CVE-ID: CVE-2026-1299
CWE-ID: CWE-93
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Python.org
Affected software:
Python

Detailed vulnerability description

The vulnerability allows a remote attacker to inject arbitrary header into email messages.

The vulnerability exists due to insufficient validation of attacker-supplied data in "BytesGenerator" class. A remote attacker can pass specially crafted data to the application containing CR-LF characters and perform a spoofing attack.


How to mitigate CVE-2026-1299

Install updates from vendor's website.

Sources