Security readout for executives and security teams
Plain-English summary
This is a Python standard library issue where unsafe newline characters in HTTP header names or values can let an attacker add unintended headers. It matters mainly for applications that build headers from user-controlled input using wsgiref.headers.Headers. It is not listed as actively exploited in the provided sources.
Executive priority
Handle as a normal security update with targeted urgency. Prioritize internet-facing or partner-facing Python services that construct HTTP headers from external input. This is not supported as an emergency zero-day by the provided sources.
Technical view
CVE-2026-0865 affects CPython’s wsgiref.headers.Headers. User-controlled header names or values containing newlines may enable HTTP header injection. The CVE maps to CWE-74 and has CVSS 4.0 score 5.9. The vector indicates network reachability, low attack complexity, attack prerequisites, high privileges, and high integrity impact.
Likely exposure
Exposure is limited to CPython environments using wsgiref.headers.Headers where untrusted input can influence HTTP header names or values. The source bundle lists CPython 3.11.0, 3.12.0, 3.13.0, 3.14.0, and 3.15.0a1 as affected entries, with other versions not clearly detailed.
Exploitation context
The provided data does not show CISA KEV listing or confirmed active exploitation. CVSS indicates exploitation requires high privileges and an attack prerequisite, reducing broad internet-scale risk. Successful abuse could affect HTTP response integrity by inserting unexpected headers.
Researcher notes
The bundle provides official CVE data, a PSF advisory, issue tracking, PR, and patch commits. It does not provide exact fixed release numbers in the structured fields. Validate final remediation against the PSF advisory and downstream package maintainers before closing findings.
Mitigation direction
- Review the Python security advisory and your distribution’s Python package guidance.
- Upgrade CPython to a vendor-fixed build containing the referenced patches.
- Prioritize systems where wsgiref.headers.Headers processes untrusted header data.
- Avoid passing newline-containing untrusted input into HTTP header names or values.
- Track vendor backports if using OS-packaged Python.
Validation and detection
- Inventory CPython versions across applications, containers, and build images.
- Search codebases for use of wsgiref.headers.Headers.
- Confirm whether header names or values can include user-controlled input.
- Verify installed Python packages include the vendor security fix or backport.
- Document exceptions where the vulnerable API is unreachable or trusted-only.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
CWE-74: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Open ATT&CK lookupCVE-2026-0865 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- Medium
- CVSS
- 5.9 (4.0)
- Known Exploited
- No
- Published
Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
CNA and ADP enrichment extracted from CVE v5
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
CVSS vector scores
1 official scoreWe collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N——Primary CVE scoreVulnerability scoring details
Base CVSS 4.0 score
5.9MediumVector: CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Source materials
- CVE List V5 sourceCVE List V5
- https://github.com/python/cpython/pull/143917CVE reference · patch
- https://github.com/python/cpython/issues/143916CVE reference · issue-tracking
- https://mail.python.org/archives/list/security-announce@python.org/thread/BJ6QPHNSHJTS3A7CFV6IBMCAP2DWRVNT/CVE reference · vendor-advisory
- https://github.com/python/cpython/commit/22e4d55285cee52bc4dbe061324e5f30bd4dee58CVE reference · patch
- https://github.com/python/cpython/commit/23e3c0ae867cca0130e441e776c9955b9027c510CVE reference · patch
- https://github.com/python/cpython/commit/4802b96a2cde58570c24c13ef3289490980961c5CVE reference · patch
- https://github.com/python/cpython/commit/f7fceed79ca1bceae8dbe5ba5bc8928564da7211CVE reference · patch
- https://github.com/python/cpython/commit/2f840249550e082dc351743f474ba56da10478d2CVE reference · patch
- https://github.com/python/cpython/commit/e4846a93ac07a8ae9aa18203af0dd13d6e7a6995CVE reference · patch
- https://github.com/python/cpython/commit/66da7bf6fe7b81e3ecc9c0a25bd47d4616c8d1a6CVE reference · patch
- https://github.com/python/cpython/commit/83ecd18779f286d872f68bfce175651e407d9fffCVE reference · patch
- https://github.com/python/cpython/commit/bfba660085767f8c2d582134e9d511a85eda04cfCVE reference · patch
- https://github.com/python/cpython/commit/286e3ac39984fe85a17f4ab39c64d382137aae5fCVE reference · patch
- https://github.com/python/cpython/commit/8bb044d29310bb05d15086cdaa8bf64867d61a97CVE reference · patch
- https://github.com/python/cpython/commit/c592227ffb48679af9845a45dbb0875d975bb219CVE reference · patch
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
