New security releases for 3.10, 3.11 and 3.12 are now available. (As these Python versions are now in security-fix-only mode, these are source-only releases, and there is no pre-set release cadence.)
email.generator.BytesGenerator now refuses to serialize headers that are unsafely folded or delimited (see email.policy.Policy.verify_generated_headers); addressing CVE-2024-6923.email.message now ensures linear complexity for legacy HTTP parameter parsing.gh-143916: wsgiref.headers.Headers now rejects C0 control characters in fields, values, and parameters.
gh-143919: http.cookies.Morsel now rejects control characters in fields and values.
gh-143925: data: URL media types now reject control characters.
gh-144363: Upgraded bundled libexpat to 2.7.4 to fix CVE-2026-24515 and CVE-2026-25210.
gh-90949: Added Expat allocation-tracker APIs to xml.parsers.expat parser objects to limit memory amplification from malicious XML input; includes mitigation for CVE-2025-59375.
gh-142145: Removed quadratic behavior in xml.dom.minidom node ID cache clearing.
gh-119342: Fixed a potential memory denial of service in plistlib.
gh-119451: Fixed a potential memory denial of service in http.client.
gh-119452: Fixed a potential memory denial of service in http.server (CGI server on Windows).
gh-136065: Fixed quadratic complexity in os.path.expandvars().
gh-137836: Hardened html.parser.HTMLParser with support for additional RAWTEXT/PLAINTEXT elements (plaintext, xmp, iframe, noembed, noframes, optional noscript), improving robust handling of hostile markup.
ssl when SSL_new() fails.https://www.python.org/downloads/release/python-31213/
Additional fixes in this release (they were already included in a previous 3.12 release):
list_richcompare_impl) for specially crafted concurrent inputs.list_ass_subscript) under specially crafted concurrent inputs.https://www.python.org/downloads/release/python-31115/
Additional fixes in this release (they were already included in a previous 3.12 release):
list_richcompare_impl) for specially crafted concurrent inputs.list_ass_subscript) under specially crafted concurrent inputs.https://www.python.org/downloads/release/python-31020/
As always, upgrading is highly recommended to all users of affected versions.
Thanks to all of the many volunteers who help make Python Development and this release possible! Please consider supporting our efforts by volunteering yourself or through organisation contributions to the Python Software Foundation.
Regards from your security-fix release team, Thomas Wouters Pablo Galindo Salgado