{"id":"BIT-libpython-2026-1299","summary":"email BytesGenerator header injection due to unquoted newlines","details":"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\".","aliases":["BIT-python-2026-1299","BIT-python-min-2026-1299","CVE-2026-1299","PSF-2026-8"],"modified":"2026-04-10T11:46:39.578907Z","published":"2026-02-03T08:45:06.015Z","database_specific":{"cpes":["cpe:2.3:a:python:python:*:*:*:*:*:*:*:*"],"severity":"Medium"},"references":[{"type":"WEB","url":"https://cve.org/CVERecord?id=CVE-2024-6923"},{"type":"WEB","url":"https://github.com/python/cpython/commit/052e55e7d44718fe46cbba0ca995cb8fcc359413"},{"type":"WEB","url":"https://github.com/python/cpython/commit/0a925ab591c45d6638f37b5e57796f36fa0e56d8"},{"type":"WEB","url":"https://github.com/python/cpython/commit/7877fe424415bc4a13045e62a90a7277413d8cb9"},{"type":"WEB","url":"https://github.com/python/cpython/commit/842ce19a0c0b58d61591e8f6a708c38db1fb94e4"},{"type":"WEB","url":"https://github.com/python/cpython/commit/8cdf6204f4ae821f32993f8fc6bad0d318f95f36"},{"type":"WEB","url":"https://github.com/python/cpython/issues/144125"},{"type":"WEB","url":"https://github.com/python/cpython/pull/144126"},{"type":"WEB","url":"https://mail.python.org/archives/list/security-announce@python.org/thread/6ZZULGALJTITEAGEXLDJE2C6FORDXPBT/"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-1299"},{"type":"WEB","url":"https://github.com/python/cpython/commit/e417f05ad77a4c30ddc07f99e90fc0cef43e831a"}],"affected":[{"package":{"name":"libpython","ecosystem":"Bitnami","purl":"pkg:bitnami/libpython"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.10.20"},{"introduced":"3.11.0"},{"fixed":"3.11.15"},{"introduced":"3.12.0"},{"fixed":"3.12.13"},{"introduced":"3.13.0"},{"fixed":"3.13.12"},{"introduced":"3.14.0"},{"fixed":"3.14.3"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/libpython/BIT-libpython-2026-1299.json"},"severity":[{"type":"CVSS_V4","score":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}]}],"schema_version":"1.7.5"}