CVE-2026-0865
wsgiref.headers.Headers allows header newline injection
Check your servers for CVE-2026-0865
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-0865 affects cpython, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
User-controlled header names and values containing newlines can allow injecting HTTP headers.
Severity (CVSS)
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
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- high: the attacker needs an administrative account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality none, integrity high, availability none: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.91%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 58.2% of all scored CVEs. Scores of 29 Nov 2026.
The assessment of CISA (SSVC, 21 Jan 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| CPython |
affected before 3.10.20 affected from 3.11.0, before 3.11.15 affected from 3.12.0, before 3.12.13 affected from 3.13.0, before 3.13.12 affected from 3.14.0, before 3.14.3 affected from 3.15.0a1, before 3.15.0a6
Other versions: unaffected
|
Is my server affected?
Find the installed version of cpython and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i cpython
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-0865 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-0865RHEL, Rocky, Alma, Fedora
rpm -q cpython
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-0865Alpine
apk list --installed | grep -i cpythonWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-0865
trivy image --scanners vuln IMAGE | grep CVE-2026-0865
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://mail.python.org/archives/list/security-announce@python.org/thread/BJ6QPHNSHJTS3A7CFV6IBMCAP2DWRVNT/ mail.python.org · vendor advisory
Patches and release notes
- https://github.com/python/cpython/pull/143917 github.com · patch
- https://github.com/python/cpython/commit/22e4d55285cee52bc4dbe061324e5f30bd4dee58 github.com · patch
- https://github.com/python/cpython/commit/23e3c0ae867cca0130e441e776c9955b9027c510 github.com · patch
- https://github.com/python/cpython/commit/4802b96a2cde58570c24c13ef3289490980961c5 github.com · patch
- https://github.com/python/cpython/commit/f7fceed79ca1bceae8dbe5ba5bc8928564da7211 github.com · patch
- https://github.com/python/cpython/commit/2f840249550e082dc351743f474ba56da10478d2 github.com · patch
- https://github.com/python/cpython/commit/e4846a93ac07a8ae9aa18203af0dd13d6e7a6995 github.com · patch
- https://github.com/python/cpython/commit/66da7bf6fe7b81e3ecc9c0a25bd47d4616c8d1a6 github.com · patch
- https://github.com/python/cpython/commit/83ecd18779f286d872f68bfce175651e407d9fff github.com · patch
- https://github.com/python/cpython/commit/bfba660085767f8c2d582134e9d511a85eda04cf github.com · patch
- https://github.com/python/cpython/commit/286e3ac39984fe85a17f4ab39c64d382137aae5f github.com · patch
- https://github.com/python/cpython/commit/8bb044d29310bb05d15086cdaa8bf64867d61a97 github.com · patch
- https://github.com/python/cpython/commit/c592227ffb48679af9845a45dbb0875d975bb219 github.com · patch
Other references
- https://github.com/python/cpython/issues/143916 github.com · issue tracking
Source: the record CVE-2026-0865 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse