# JLSEC-2026-1639: http.cookies.Morsel.jsoutput() returns an inline <script snippet and only escapes " for JavaScript string context.

- Severity: Medium 6.1 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-12-01T15:11:45.475Z
- Modified: 2026-12-01T15:15:03.423Z
- Related: CVE-2026-6019

## 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 Julia Security Advisories.)

## Affected

- Python_jll (Julia): all versions

## Every score

- Julia Security Advisories: 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`
- Julia Security Advisories: CVSS:4.0 `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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

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

## Sources

- Julia Security Advisories: [JLSEC-2026-1639](https://osv.dev/vulnerability/JLSEC-2026-1639), CC-BY-4.0, modified 2026-12-01

---

Page: https://cve.day/JLSEC-2026-1639 · Whole record: https://cve.day/JLSEC-2026-1639.json · Rebuilt by cve.day 2026-12-01T15:27:04.887Z
