CVE-2026-1299 Details
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".
A header injection vulnerability has been identified in the Python CPython email module, specifically within the BytesGenerator class. This issue arises because the generator did not properly quote newlines in email headers during serialization, allowing for injection attacks. The vulnerability is relevant when using 'LiteralHeader' with headers that do not adhere to standard email folding rules. The newly implemented behavior in the BytesGenerator will reject headers that are incorrectly folded.
The vulnerability has been addressed in Python versions 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5, and 3.13.0rc2. Users should upgrade to one of these versions.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jan 23, 2026CISA-ADP
Assessed Jan 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-93 | Improper Neutralization of CRLF Sequences ('CRLF Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Python CPython | < 3.8.20 (semver) >= 3.9.0, < 3.9.20 (semver) >= 3.10.0, < 3.10.15 (semver) >= 3.11.0, < 3.11.10 (semver) >= 3.12.0, < 3.12.5 (semver) >= 3.13.0a1, < 3.13.0rc2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 13, 2026 | CVE Modified | [email protected] |
| Jan 26, 2026 | CVE Modified | [email protected] |
| Jan 23, 2026 | New CVE Received | [email protected] |
Volerion