{"id":"CVE-2026-1299","published":"2026-01-23T16:27:13Z","modified":"2026-03-03T14:43:35Z","title":"email BytesGenerator header injection due to unquoted newlines","vendor":"Python Software Foundation","product":"CPython","tier":"tail","description":{"text":"The \nemail module, specifically the \"BytesGenerator\" class, didn’t properly quote newlines for email headers when \nserializing an email message allowing for header injection when an email\n 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\".","provenance":"source","from":"CVE.org"},"cvss":{"score":6,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00812,"percentile":0.53892,"provenance":"source"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"}],"references":[{"url":"https://github.com/python/cpython/pull/144126","tags":["patch"]},{"url":"https://github.com/python/cpython/issues/144125","tags":["issue-tracking"]},{"url":"https://cve.org/CVERecord?id=CVE-2024-6923","tags":["related"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/6ZZULGALJTITEAGEXLDJE2C6FORDXPBT/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/commit/052e55e7d44718fe46cbba0ca995cb8fcc359413","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/0a925ab591c45d6638f37b5e57796f36fa0e56d8","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/7877fe424415bc4a13045e62a90a7277413d8cb9","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/842ce19a0c0b58d61591e8f6a708c38db1fb94e4","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/8cdf6204f4ae821f32993f8fc6bad0d318f95f36","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/e417f05ad77a4c30ddc07f99e90fc0cef43e831a","tags":["patch"]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":10.78},{"name":"CVSS severity","points":4.2}]},"vendorSlug":"python-software-foundation","affectedVersions":[{"vendor":"Python Software Foundation","product":"CPython","versions":["< 3.10.20",">= 3.11.0, < 3.11.15",">= 3.12.0, < 3.12.13",">= 3.13.0, < 3.13.12",">= 3.14.0, < 3.14.3",">= 3.15.0a1, < 3.15.0a6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-23T16:55:59.722632Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-4272","exploited":false,"provenance":"source"}}