{"answers":{"affected":"3 open source packages ship an affected version, including libpython, python and python-min.","exploited":"There is no known exploitation of CVE-2026-0865 in the wild and no public exploit code.","fix":"Upgrade libpython to a fixed version for your release line: 3.10.20, 3.11.15, 3.12.13 or 3.13.12.","what":"CVE-2026-0865 is a medium-severity vulnerability in CPython, published on 20 Jan 2026. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-0865 and fix it if it is affected.\n\nWhat it is: CVE-2026-0865 is a medium-severity vulnerability in CPython, published on 20 Jan 2026. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-0865 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- libpython (Bitnami): affected all versions; fixed in 3.10.20, 3.11.15, 3.12.13, 3.13.12, 3.14.3\n- python (Bitnami): affected all versions; fixed in 3.10.20, 3.11.15, 3.12.13, 3.13.12, 3.14.3\n- python-min (Bitnami): affected all versions; fixed in 3.10.20, 3.11.15, 3.12.13, 3.13.12, 3.14.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-0865/ (Markdown: https://insights.sbomify.com/CVE-2026-0865/index.md)","id":"CVE-2026-0865","markdown":"https://insights.sbomify.com/CVE-2026-0865/index.md","name":"CVE-2026-0865","record":{"aliases":["AZL-75032","AZL-75053","AZL-84272","BELL-CVE-2026-0865","BIT-libpython-2026-0865","BIT-python-2026-0865","BIT-python-min-2026-0865","DEBIAN-CVE-2026-0865","ECHO-161c-5786-cb70","GHSA-5mc7-p6pj-r3f5","MINI-8fcx-736x-vj46","MINI-99vm-pp5c-jc8p","MINI-fh4c-v6j3-p5x7","MINI-fp4p-227x-m3w2","MINI-jqfv-cqgf-j82c","PSF-2026-6","RHSA-2026:18693","RHSA-2026:18957","RHSA-2026:18958"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_modify","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Python standard library","requires_auth":"high_privilege","summary":"Attackers can inject HTTP headers via newline characters in user-controlled header names or values within the Python wsgiref library.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PSF","cpe":[],"cvss":{"score":5.9,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"User-controlled header names and values containing newlines can allow injecting HTTP headers.","ecosystems":["Bitnami","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Red Hat:enterprise_linux:9::crb"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"wsgiref.headers.Headers allows header newline injection","id":"CVE-2026-0865","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"other","year":"2026"},"n_packages":46,"n_references":15,"next":{"headline":"After the publication of the PoC by the researcher and further analysis, we have determined that this issue does not constitute a valid vulnerability.","id":"CVE-2026-0866"},"packages":[{"ecosystem":"Bitnami","fixed":["3.10.20","3.11.15","3.12.13","3.13.12","3.14.3"],"introduced":["0","3.11.0","3.12.0","3.13.0","3.14.0"],"last_affected":[],"package":"libpython","purl":"pkg:bitnami/libpython","source":"BIT-libpython-2026-0865"},{"ecosystem":"Bitnami","fixed":["3.10.20","3.11.15","3.12.13","3.13.12","3.14.3"],"introduced":["0","3.11.0","3.12.0","3.13.0","3.14.0"],"last_affected":[],"package":"python","purl":"pkg:bitnami/python","source":"BIT-python-2026-0865"},{"ecosystem":"Bitnami","fixed":["3.10.20","3.11.15","3.12.13","3.13.12","3.14.3"],"introduced":["0","3.11.0","3.12.0","3.13.0","3.14.0"],"last_affected":[],"package":"python-min","purl":"pkg:bitnami/python-min","source":"BIT-python-min-2026-0865"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.9.25-5.el9_8"],"introduced":["0"],"last_affected":[],"package":"python-unversioned-command","purl":"pkg:rpm/redhat/python-unversioned-command","source":"RHSA-2026:18693"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.9.25-5.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3-devel","purl":"pkg:rpm/redhat/python3-devel","source":"RHSA-2026:18693"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.9.25-5.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3-tkinter","purl":"pkg:rpm/redhat/python3-tkinter","source":"RHSA-2026:18693"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.11.13-7.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.11","purl":"pkg:rpm/redhat/python3.11","source":"RHSA-2026:18957"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.11.13-7.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.11-debuginfo","purl":"pkg:rpm/redhat/python3.11-debuginfo","source":"RHSA-2026:18957"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.11.13-7.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.11-debugsource","purl":"pkg:rpm/redhat/python3.11-debugsource","source":"RHSA-2026:18957"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.11.13-7.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.11-devel","purl":"pkg:rpm/redhat/python3.11-devel","source":"RHSA-2026:18957"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.11.13-7.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.11-libs","purl":"pkg:rpm/redhat/python3.11-libs","source":"RHSA-2026:18957"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.11.13-7.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.11-tkinter","purl":"pkg:rpm/redhat/python3.11-tkinter","source":"RHSA-2026:18957"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.12.12-6.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.12","purl":"pkg:rpm/redhat/python3.12","source":"RHSA-2026:18958"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.12.12-6.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.12-debuginfo","purl":"pkg:rpm/redhat/python3.12-debuginfo","source":"RHSA-2026:18958"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.12.12-6.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.12-debugsource","purl":"pkg:rpm/redhat/python3.12-debugsource","source":"RHSA-2026:18958"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.12.12-6.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.12-devel","purl":"pkg:rpm/redhat/python3.12-devel","source":"RHSA-2026:18958"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.12.12-6.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.12-libs","purl":"pkg:rpm/redhat/python3.12-libs","source":"RHSA-2026:18958"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.12.12-6.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.12-tkinter","purl":"pkg:rpm/redhat/python3.12-tkinter","source":"RHSA-2026:18958"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.9.25-5.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.9-debuginfo","purl":"pkg:rpm/redhat/python3.9-debuginfo","source":"RHSA-2026:18693"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.9.25-5.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.9-debugsource","purl":"pkg:rpm/redhat/python3.9-debugsource","source":"RHSA-2026:18693"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:3.9.25-5.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3","purl":"pkg:rpm/redhat/python3","source":"RHSA-2026:18693"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:3.9.25-5.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3-libs","purl":"pkg:rpm/redhat/python3-libs","source":"RHSA-2026:18693"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:3.9.25-5.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.9","purl":"pkg:rpm/redhat/python3.9","source":"RHSA-2026:18693"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:3.9.25-5.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.9-debuginfo","purl":"pkg:rpm/redhat/python3.9-debuginfo","source":"RHSA-2026:18693"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:3.9.25-5.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.9-debugsource","purl":"pkg:rpm/redhat/python3.9-debugsource","source":"RHSA-2026:18693"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.9.25-5.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3","purl":"pkg:rpm/redhat/python3","source":"RHSA-2026:18693"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.9.25-5.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3-debug","purl":"pkg:rpm/redhat/python3-debug","source":"RHSA-2026:18693"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.9.25-5.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3-idle","purl":"pkg:rpm/redhat/python3-idle","source":"RHSA-2026:18693"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.9.25-5.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3-test","purl":"pkg:rpm/redhat/python3-test","source":"RHSA-2026:18693"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.9.25-5.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3-tkinter","purl":"pkg:rpm/redhat/python3-tkinter","source":"RHSA-2026:18693"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.11.13-7.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.11","purl":"pkg:rpm/redhat/python3.11","source":"RHSA-2026:18957"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.11.13-7.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.11-debug","purl":"pkg:rpm/redhat/python3.11-debug","source":"RHSA-2026:18957"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.11.13-7.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.11-debuginfo","purl":"pkg:rpm/redhat/python3.11-debuginfo","source":"RHSA-2026:18957"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.11.13-7.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.11-debugsource","purl":"pkg:rpm/redhat/python3.11-debugsource","source":"RHSA-2026:18957"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.11.13-7.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.11-idle","purl":"pkg:rpm/redhat/python3.11-idle","source":"RHSA-2026:18957"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.11.13-7.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.11-test","purl":"pkg:rpm/redhat/python3.11-test","source":"RHSA-2026:18957"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.11.13-7.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.11-tkinter","purl":"pkg:rpm/redhat/python3.11-tkinter","source":"RHSA-2026:18957"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.12.12-6.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.12","purl":"pkg:rpm/redhat/python3.12","source":"RHSA-2026:18958"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.12.12-6.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.12-debug","purl":"pkg:rpm/redhat/python3.12-debug","source":"RHSA-2026:18958"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.12.12-6.el9_8"],"introduced":["0"],"last_affected":[],"package":"python3.12-debuginfo","purl":"pkg:rpm/redhat/python3.12-debuginfo","source":"RHSA-2026:18958"}],"prev":{"headline":"Configuration Injection via Carriage Return (\\r) in write() method","id":"CVE-2026-0864"},"products":["CPython"],"published":"2026-01-20","related":[],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-03","vendors":["Python Software Foundation"]},"summary":"Attackers can inject HTTP headers via newline characters in user-controlled header names or values within the Python wsgiref library.","url":"https://insights.sbomify.com/CVE-2026-0865/"}