# CVE-2026-0672: Header injection in http.cookies.Morsel

- Severity: Medium 6.0 (CVSS:4.0, scored by PSF) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 43% of CVEs (2026-12-01)
- Published: 2026-01-20T21:52:33.925Z
- Modified: 2026-06-17T10:11:11.133Z
- Also known as: PSF-2026-5, BIT-LIBPYTHON-2026-0672, BIT-PYTHON-2026-0672, BIT-PYTHON-MIN-2026-0672
- Weaknesses: CWE-93
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PSF

## Description

When using http.cookies.Morsel, user-controlled cookie values and parameters can allow injecting HTTP headers into messages. Patch rejects all control characters within cookie names, values, and parameters.

(As written by CVE List.)

## Affected

- Python Software Foundation CPython: before 3.10.20; from 3.11.0 before 3.11.15; from 3.12.0 before 3.12.13; from 3.13.0 before 3.13.12; from 3.14.0 before 3.14.3; from 3.15.0a1 before 3.15.0a6
- https://github.com/python/cpython: before 95746b3a13a985787ef53b977129041971ed7f70; before 712452e6f1d4b9f7f8c4c92ebfcaac1705faa440; before 62700107418eb2cca3fc88da036a243ea975f172; before 7852d72b653fea0199acf5fc2a84f6f8b84eba8d; before 918387e4912d12ffc166c8f2a38df92b6ec756ca; before b1869ff648bbee0717221d09e6deff46617f3e85
- libpython (Bitnami): before 3.10.20; from 3.11.0 before 3.11.15; from 3.12.0 before 3.12.13; from 3.13.0 before 3.13.12; from 3.14.0 before 3.14.3
- python (Bitnami): before 3.10.20; from 3.11.0 before 3.11.15; from 3.12.0 before 3.12.13; from 3.13.0 before 3.13.12; from 3.14.0 before 3.14.3
- python-min (Bitnami): before 3.10.20; from 3.11.0 before 3.11.15; from 3.12.0 before 3.12.13; from 3.13.0 before 3.13.12; from 3.14.0 before 3.14.3

## Every score

- PSF: CVSS:4.0 6.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/python/cpython/pull/143920> (patch, web)
- <https://github.com/python/cpython/issues/143919> (issue-tracking, report, web)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/6VFLQQEIX673KXKFUZXCUNE5AZOGZ45M/> (advisory, vendor-advisory, web)
- <https://github.com/python/cpython/commit/95746b3a13a985787ef53b977129041971ed7f70> (fix, patch, web)
- <https://github.com/python/cpython/commit/712452e6f1d4b9f7f8c4c92ebfcaac1705faa440> (fix, patch, web)
- <https://github.com/python/cpython/commit/62700107418eb2cca3fc88da036a243ea975f172> (fix, patch, web)
- <https://github.com/python/cpython/commit/7852d72b653fea0199acf5fc2a84f6f8b84eba8d> (fix, patch, web)
- <https://github.com/python/cpython/commit/918387e4912d12ffc166c8f2a38df92b6ec756ca> (fix, patch, web)
- <https://github.com/python/cpython/commit/b1869ff648bbee0717221d09e6deff46617f3e85> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-0672> (web)

## Sources

- CVE List: [CVE-2026-0672](https://www.cve.org/CVERecord?id=CVE-2026-0672), CVE Terms of Use, modified 2026-03-03
- Python Software Foundation: [PSF-2026-5](https://osv.dev/vulnerability/PSF-2026-5), CC-BY-4.0, modified 2026-01-27
- NVD: [CVE-2026-0672](https://nvd.nist.gov/vuln/detail/CVE-2026-0672), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2026-0672](https://osv.dev/vulnerability/BIT-LIBPYTHON-2026-0672), Apache-2.0, modified 2026-04-10
- Bitnami Vulnerability Database: [BIT-PYTHON-2026-0672](https://osv.dev/vulnerability/BIT-PYTHON-2026-0672), Apache-2.0, modified 2026-04-10
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2026-0672](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2026-0672), Apache-2.0, modified 2026-04-10

---

Page: https://cve.day/CVE-2026-0672 · Whole record: https://cve.day/CVE-2026-0672.json · Rebuilt by cve.day 2026-11-25T22:59:12.983Z
