Vulnerability · Published Jan 23, 2026 · Assigned by PSF

CVE-2026-1299email BytesGenerator header injection due to unquoted newlines

Medium 6.0

In plain English

A medium-severity security flaw in CPython from Python Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.0Medium
Exploit odds (30 days)0.6%top 52.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8platform-python3.6.8-73.el8_10.alma.1ALSA-2026:2128
AlmaLinux:8platform-python-debug3.6.8-73.el8_10.alma.1ALSA-2026:2128
AlmaLinux:8platform-python-devel3.6.8-73.el8_10.alma.1ALSA-2026:2128
AlmaLinux:10python-unversioned-command3.12.12-3.el10_1.1ALSA-2026:4713
AlmaLinux:9python-unversioned-command3.9.25-3.el9_7.1ALSA-2026:4168
AlmaLinux:9python33.9.25-3.el9_7.1ALSA-2026:4168
AlmaLinux:9python3-debug3.9.25-3.el9_7.1ALSA-2026:4168
AlmaLinux:9python3-devel3.9.25-3.el9_7.1ALSA-2026:4168
AlmaLinux:8python3-idle3.6.8-73.el8_10.alma.1ALSA-2026:2128
AlmaLinux:9python3-idle3.9.25-3.el9_7.1ALSA-2026:4168
AlmaLinux:8python3-libs3.6.8-73.el8_10.alma.1ALSA-2026:2128
AlmaLinux:9python3-libs3.9.25-3.el9_7.1ALSA-2026:4168
AlmaLinux:8python3-test3.6.8-73.el8_10.alma.1ALSA-2026:2128
AlmaLinux:9python3-test3.9.25-3.el9_7.1ALSA-2026:4168
AlmaLinux:8python3-tkinter3.6.8-73.el8_10.alma.1ALSA-2026:2128
AlmaLinux:9python3-tkinter3.9.25-3.el9_7.1ALSA-2026:4168
AlmaLinux:8python3.113.11.13-5.el8_10ALSA-2026:4473
AlmaLinux:9python3.113.11.13-5.1.el9_7ALSA-2026:4216
AlmaLinux:8python3.11-debug3.11.13-5.el8_10ALSA-2026:4473
AlmaLinux:9python3.11-debug3.11.13-5.1.el9_7ALSA-2026:4216
AlmaLinux:8python3.11-devel3.11.13-5.el8_10ALSA-2026:4473
AlmaLinux:9python3.11-devel3.11.13-5.1.el9_7ALSA-2026:4216
AlmaLinux:8python3.11-idle3.11.13-5.el8_10ALSA-2026:4473
AlmaLinux:9python3.11-idle3.11.13-5.1.el9_7ALSA-2026:4216
AlmaLinux:8python3.11-libs3.11.13-5.el8_10ALSA-2026:4473
AlmaLinux:9python3.11-libs3.11.13-5.1.el9_7ALSA-2026:4216
AlmaLinux:8python3.11-rpm-macros3.11.13-5.el8_10ALSA-2026:4473
AlmaLinux:8python3.11-test3.11.13-5.el8_10ALSA-2026:4473
AlmaLinux:9python3.11-test3.11.13-5.1.el9_7ALSA-2026:4216
AlmaLinux:8python3.11-tkinter3.11.13-5.el8_10ALSA-2026:4473
AlmaLinux:9python3.11-tkinter3.11.13-5.1.el9_7ALSA-2026:4216
AlmaLinux:8python3.123.12.12-3.el8_10ALSA-2026:4463
AlmaLinux:9python3.123.12.12-4.el9_7.1ALSA-2026:4165
AlmaLinux:8python3.12-debug3.12.12-3.el8_10ALSA-2026:4463
AlmaLinux:9python3.12-debug3.12.12-4.el9_7.1ALSA-2026:4165
AlmaLinux:8python3.12-devel3.12.12-3.el8_10ALSA-2026:4463
AlmaLinux:9python3.12-devel3.12.12-4.el9_7.1ALSA-2026:4165
AlmaLinux:8python3.12-idle3.12.12-3.el8_10ALSA-2026:4463
AlmaLinux:9python3.12-idle3.12.12-4.el9_7.1ALSA-2026:4165
AlmaLinux:8python3.12-libs3.12.12-3.el8_10ALSA-2026:4463
AlmaLinux:9python3.12-libs3.12.12-4.el9_7.1ALSA-2026:4165
AlmaLinux:8python3.12-rpm-macros3.12.12-3.el8_10ALSA-2026:4463
AlmaLinux:8python3.12-test3.12.12-3.el8_10ALSA-2026:4463
AlmaLinux:9python3.12-test3.12.12-4.el9_7.1ALSA-2026:4165
AlmaLinux:8python3.12-tkinter3.12.12-3.el8_10ALSA-2026:4463
AlmaLinux:9python3.12-tkinter3.12.12-4.el9_7.1ALSA-2026:4165
Debian:12pypy3no fix listedDEBIAN-CVE-2026-1299
Debian:13pypy3no fix listedDEBIAN-CVE-2026-1299
Debian:14pypy37.3.21+dfsg-1DEBIAN-CVE-2026-1299
Debian:12python3.113.11.2-6+deb12u7DEBIAN-CVE-2026-1299
Debian:13python3.133.13.5-2+deb13u1DEBIAN-CVE-2026-1299
Debian:14python3.143.14.3-1DEBIAN-CVE-2026-1299
Rocky Linux:8python30:3.6.8-73.el8_10.rocky.0RLSA-2026:2128
Rocky Linux:8python3.110:3.11.13-5.el8_10RLSA-2026:4473
Rocky Linux:9python3.110:3.11.13-5.1.el9_7RLSA-2026:4216
Rocky Linux:10python3.120:3.12.12-3.el10_1.1RLSA-2026:4713
Rocky Linux:8python3.120:3.12.12-3.el8_10RLSA-2026:4463
Rocky Linux:9python3.120:3.12.12-4.el9_7.1RLSA-2026:4165
Rocky Linux:9python3.90:3.9.25-3.el9_7.1RLSA-2026:4168
Ubuntu:22.04:LTSpypy3no fix listedUBUNTU-CVE-2026-1299
Ubuntu:24.04:LTSpypy3no fix listedUBUNTU-CVE-2026-1299
Ubuntu:25.10pypy3no fix listedUBUNTU-CVE-2026-1299
Ubuntu:26.04:LTSpypy3no fix listedUBUNTU-CVE-2026-1299
Ubuntu:26.10pypy3no fix listedUBUNTU-CVE-2026-1299
Ubuntu:22.04:LTSpython3.103.10.12-1~22.04.16UBUNTU-CVE-2026-1299
Ubuntu:22.04:LTSpython3.103.10.12-1~22.04.16USN-8509-1
Ubuntu:24.04:LTSpython3.123.12.3-1ubuntu0.15UBUNTU-CVE-2026-1299
Ubuntu:24.04:LTSpython3.123.12.3-1ubuntu0.15USN-8509-1
Ubuntu:25.10python3.13no fix listedUBUNTU-CVE-2026-1299
Ubuntu:25.10python3.14no fix listedUBUNTU-CVE-2026-1299
Ubuntu:26.04:LTSpython3.143.14.3-1UBUNTU-CVE-2026-1299
Ubuntu:26.04:LTSpython3.143.14.4-1ubuntu0.1USN-8509-1

Affected products (as reported)

VendorProductVersions
Python Software Foundation CPython 0 – before 3.10.203.11.0 – before 3.11.153.12.0 – before 3.12.133.13.0 – before 3.13.123.14.0 – before 3.14.33.15.0a1 – before 3.15.0a6

Weakness: CWE-93 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N

References