CVE-2026-6019

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

Configuration 1 (hide)

OR cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
cpe:2.3:a:python:python:3.15.0:alpha1:*:*:*:*:*:*
cpe:2.3:a:python:python:3.15.0:alpha2:*:*:*:*:*:*
cpe:2.3:a:python:python:3.15.0:alpha3:*:*:*:*:*:*
cpe:2.3:a:python:python:3.15.0:alpha4:*:*:*:*:*:*
cpe:2.3:a:python:python:3.15.0:alpha5:*:*:*:*:*:*
cpe:2.3:a:python:python:3.15.0:alpha6:*:*:*:*:*:*
cpe:2.3:a:python:python:3.15.0:alpha7:*:*:*:*:*:*
cpe:2.3:a:python:python:3.15.0:alpha8:*:*:*:*:*:*

History

26 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) http.cookies.Morsel.js_output() devuelve un fragmento de [script_tag] en línea y solo escapa ” para el contexto de cadena de JavaScript. No neutraliza la secuencia sensible al analizador HTML [/script] dentro del elemento de script generado. La mitigación codifica en base64 el valor de la cookie para impedir el escape utilizando el valor de la cookie.

Information

Published : 2026-04-22 20:16

Updated : 2026-10-26 21:10


NVD link : CVE-2026-6019

Mitre link : CVE-2026-6019

CVE.ORG link : CVE-2026-6019


JSON object : View

Products Affected

python

  • python
CWE
CWE-150

Improper Neutralization of Escape, Meta, or Control Sequences

CWE-116

Improper Encoding or Escaping of Output