# CVE-2026-6019: BaseCookie.js_output() does not neutralize embedded characters

- Severity: Low 2.1 (CVSS:4.0, scored by PSF) `CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:L/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.26%, higher than 18% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-22T19:28:08.720Z
- Modified: 2026-11-10T13:19:38.513Z
- Also known as: PSF-2026-21, BIT-LIBPYTHON-2026-6019, BIT-PYTHON-2026-6019, BIT-PYTHON-MIN-2026-6019
- Weaknesses: CWE-116, CWE-150
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PSF

## Description

http.cookies.Morsel.js_output() returns an inline <script> snippet and only escapes " for JavaScript string context. It does not neutralize the HTML parser-sensitive sequence </script> inside the generated script element. Mitigation base64-encodes the cookie value to disallow escaping using cookie value.

(As written by CVE List.)

## Affected

- Python Software Foundation CPython: before 3.13.14; from 3.14.0a1 before 3.14.5rc1; from 3.15.0a1 before 3.15.0b1
- https://github.com/python/cpython: before 76b3923d688c0efc580658476c5f525ec8735104; before 3c59b8b53fc75c7f9578d16fb8201ceb43e8f76c; before f795e042043dfe26c42e1971d4502c1cdc4c65b8
- python python: before 3.13.14; from 3.14.0 up to 3.14.4; 3.15.0
- libpython (Bitnami): before 3.13.14; from 3.14.0 before 3.14.5
- python (Bitnami): before 3.13.14; from 3.14.0 before 3.14.5
- python-min (Bitnami): before 3.13.14; from 3.14.0 before 3.14.5

## Every score

- PSF: CVSS:4.0 2.1 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/python/cpython/issues/90309> (exploit, evidence, issue-tracking, report)
- <https://github.com/python/cpython/pull/148848> (fix, issue-tracking, patch, web)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/IVNWGV2BBNC3RHQAFS22UP4DY56SAXX3/> (advisory, mailing-list, vendor-advisory)
- <https://github.com/python/cpython/commit/76b3923d688c0efc580658476c5f525ec8735104> (fix, patch)
- <https://github.com/python/cpython/commit/3c59b8b53fc75c7f9578d16fb8201ceb43e8f76c> (fix, patch)
- <https://github.com/python/cpython/commit/f795e042043dfe26c42e1971d4502c1cdc4c65b8> (fix, patch)
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6019> (web)

## Sources

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

---

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