// Security Advisory Triage

CPython HTTP parser accepts invalid integers in response framing

Python security announcements · published 2026-10-27 21:40 UTC
WORTH KNOWING VERIFY_EXPOSURE SECURITY
WHAT CHANGEDCVE-2026-103995 disclosed 27 October 2026. CPython's HTTP response parser incorrectly handles non-hex or negative integers in Content-Length and chunk size fields, allowing malformed values that should be rejected.
WHY IT MATTERSA malicious or compromised upstream server can send response framing that CPython accepts but other HTTP implementations reject, causing the application to process different content than intermediaries see. This enables cache poisoning and request smuggling attacks where Python clients interpret response boundaries differently than proxies or CDNs.
WHAT TO DOCheck whether your services run CPython and make outbound HTTP requests (via urllib, http.client, or libraries built on them). Affected versions and patches: see CVE-2026-103995 at https://www.cve.org/CVERecord?id=CVE-2026-103995 and fix PR at https://github.com/python/cpython/pull/150752
Model-reported confidence 85% (not measured accuracy) Primary source ↗ written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+## [Security-announce][CVE-2026-103995] Lenient parsing of integers for response body and chunk framing
+https://mail.python.org/archives/list/security-announce@python.org/message/6TLH7YBU4HJIFBTBCEPAAK2I2F4KQBRB/
+Tue, 27 Oct 2026 19:26:24 +0000
+
+There is a LOW severity vulnerability affecting CPython.
+
+Response body and chunk parsing would handle non-hex or negative integers
+incorrectly which could result in misinterpreting HTTP response contents.
+
+Please see the linked CVE ID for the latest information on affected
+versions:
+
+* https://www.cve.org/CVERecord?id=CVE-2026-103995
+* https://github.com/python/cpython/pull/150752
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
triage verdictMATERIAL at 0.92, needed 0.5
triage reasoningPython runtime HTTP parsing flaw affects dependency tree of normal services.
signalsaffects Python runtime (CPython) · HTTP response parsing vulnerability · potential for misinterpreting response contents · security advisory from official Python security-announce list · CVE assigned
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)