# CVE-2026-6019: BaseCookie.js\_output() does not neutralize embedded characters

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 2.1
- **CVSS:** 2.1 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: High; User interaction: None; Confidentiality impact: Low; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.61% (percentile 43, 2026-11-26)
- **CWE:** CWE-150
- **Published:** 2026-04-22T19:28:08.720Z
- **Modified:** 2026-11-10T13:19:38.513Z

## Who should check

- Anyone running Python Software Foundation CPython \< 3.13.14; \>= 3.14.0a1, \< 3.14.5rc1; \>= 3.15.0a1, \< 3.15.0b1

## 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.

## Affected and fixed versions

- Python Software Foundation CPython: \< 3.13.14; \>= 3.14.0a1, \< 3.14.5rc1; \>= 3.15.0a1, \< 3.15.0b1 (cvelist)

## Mitigation

- Upgrade CPython to 3.15.0b1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-6019. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-6019.md
Affected: Python Software Foundation CPython < 3.13.14; >= 3.14.0a1, < 3.14.5rc1; >= 3.15.0a1, < 3.15.0b1
Fixed in: Python Software Foundation CPython 3.13.14, Python Software Foundation CPython 3.14.5rc1, Python Software Foundation CPython 3.15.0b1

Steps:
1. Search this machine and project for Python Software Foundation CPython: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-6019 being exploited?

There is no confirmed exploitation: CVE-2026-6019 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.61% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-6019?

Low: CVSS 2.1 (v4.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-6019?

Python Software Foundation CPython \< 3.13.14; \>= 3.14.0a1, \< 3.14.5rc1; \>= 3.15.0a1, \< 3.15.0b1.

### Is there a fix for CVE-2026-6019?

Yes. Fixed in Python Software Foundation CPython 3.13.14, Python Software Foundation CPython 3.14.5rc1, Python Software Foundation CPython 3.15.0b1. Upgrade CPython to 3.15.0b1 or later.

### How do I check if I'm affected by CVE-2026-6019?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://mail.python.org/archives/list/security-announce@python.org/thread/IVNWGV2BBNC3RHQAFS22UP4DY56SAXX3/>
- patch: <https://github.com/python/cpython/pull/148848>
- patch: <https://github.com/python/cpython/commit/76b3923d688c0efc580658476c5f525ec8735104>
- patch: <https://github.com/python/cpython/commit/3c59b8b53fc75c7f9578d16fb8201ceb43e8f76c>
- patch: <https://github.com/python/cpython/commit/f795e042043dfe26c42e1971d4502c1cdc4c65b8>
- exploit: <https://github.com/python/cpython/issues/90309>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-6019>

HTML: <https://flawdb.com/CVE-2026-6019> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-6019>
