CVE-2026-1299 email BytesGenerator header injection due to unquoted newlines
Attackers can inject headers into emails if developers use LiteralHeader with BytesGenerator, requiring specific coding patterns to exploit.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-1299?
CVE-2026-1299 is a medium-severity vulnerability in CPython, published on 23 Jan 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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".
Weakness: CWE-93
Which versions are affected by CVE-2026-1299?
3 open source packages ship an affected version, including libpython, python and python-min.
| Package | Affected | Fixed in |
|---|---|---|
libpython Bitnami | All versions | 3.10.20, 3.11.15, 3.12.13, 3.13.12, 3.14.3 |
python Bitnami | All versions | 3.10.20, 3.11.15, 3.12.13, 3.13.12, 3.14.3 |
python-min Bitnami | All versions | 3.10.20, 3.11.15, 3.12.13, 3.13.12, 3.14.3 |
Linux distribution packages (37)
python3 SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 3.6.15-150300.10.109.1 |
python3-core SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 3.6.15-150300.10.109.1 |
python3 SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 3.6.15-150300.10.109.1 |
python3-core SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 3.6.15-150300.10.109.1 |
python3 SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | All versions | 3.6.15-150300.10.109.1 |
python3-core SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | All versions | 3.6.15-150300.10.109.1 |
python3 SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | All versions | 3.6.15-150300.10.109.1 |
python3-core SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | All versions | 3.6.15-150300.10.109.1 |
python3 SUSE:Linux Enterprise Micro 5.2 | All versions | 3.6.15-150300.10.109.1 |
python3-core SUSE:Linux Enterprise Micro 5.2 | All versions | 3.6.15-150300.10.109.1 |
python3 SUSE:Linux Enterprise Micro 5.3 | All versions | 3.6.15-150300.10.109.1 |
python3-core SUSE:Linux Enterprise Micro 5.3 | All versions | 3.6.15-150300.10.109.1 |
python3 SUSE:Linux Enterprise Micro 5.4 | All versions | 3.6.15-150300.10.109.1 |
python3-core SUSE:Linux Enterprise Micro 5.4 | All versions | 3.6.15-150300.10.109.1 |
python3 SUSE:Linux Enterprise Micro 5.5 | All versions | 3.6.15-150300.10.109.1 |
python3-core SUSE:Linux Enterprise Micro 5.5 | All versions | 3.6.15-150300.10.109.1 |
python3 SUSE:Linux Enterprise Module for Basesystem 15 SP7 | All versions | 3.6.15-150300.10.109.1 |
python3-core SUSE:Linux Enterprise Module for Basesystem 15 SP7 | All versions | 3.6.15-150300.10.109.1 |
python3-core SUSE:Linux Enterprise Module for Development Tools 15 SP7 | All versions | 3.6.15-150300.10.109.1 |
python SUSE:Linux Enterprise Module for Package Hub 15 SP7 | All versions | 2.7.18-150000.108.1 |
python-base SUSE:Linux Enterprise Module for Package Hub 15 SP7 | All versions | 2.7.18-150000.108.1 |
python SUSE:Linux Enterprise Server 12 SP5-LTSS | All versions | 2.7.18-33.69.1 |
python-base SUSE:Linux Enterprise Server 12 SP5-LTSS | All versions | 2.7.18-33.69.1 |
python-doc SUSE:Linux Enterprise Server 12 SP5-LTSS | All versions | 2.7.18-33.69.1 |
python3 SUSE:Linux Enterprise Server 12 SP5-LTSS | All versions | 3.4.10-25.175.1 |
python3-base SUSE:Linux Enterprise Server 12 SP5-LTSS | All versions | 3.4.10-25.175.1 |
python36 SUSE:Linux Enterprise Server 12 SP5-LTSS | All versions | 3.6.15-103.1 |
python36-core SUSE:Linux Enterprise Server 12 SP5-LTSS | All versions | 3.6.15-103.1 |
python3 SUSE:Linux Enterprise Server 15 SP4-LTSS | All versions | 3.6.15-150300.10.109.1 |
python3-core SUSE:Linux Enterprise Server 15 SP4-LTSS | All versions | 3.6.15-150300.10.109.1 |
python3 SUSE:Linux Enterprise Server 15 SP5-LTSS | All versions | 3.6.15-150300.10.109.1 |
python3-core SUSE:Linux Enterprise Server 15 SP5-LTSS | All versions | 3.6.15-150300.10.109.1 |
python3 SUSE:Linux Enterprise Server 15 SP6-LTSS | All versions | 3.6.15-150300.10.109.1 |
python3-core SUSE:Linux Enterprise Server 15 SP6-LTSS | All versions | 3.6.15-150300.10.109.1 |
python SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | All versions | 2.7.18-33.69.1 |
python-base SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | All versions | 2.7.18-33.69.1 |
python-doc SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | All versions | 2.7.18-33.69.1 |
How do I fix CVE-2026-1299?
Upgrade libpython to a fixed version for your release line: 3.10.20, 3.11.15, 3.12.13 or 3.13.12.
Is CVE-2026-1299 being exploited?
There is no known exploitation of CVE-2026-1299 in the wild and no public exploit code.
Sources
Also known as AZL-75219, AZL-75234, AZL-84290, BELL-CVE-2026-1299, BIT-libpython-2026-1299, BIT-python-2026-1299 and 19 more.