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.

Related CPE's


a

python

python

10

Weaknesses



CWE-150


CWE-116

CVSS impact metrics


CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

6.1 · Medium

Information


Source identifier

[email protected]

Vulnerability status

Analyzed

Published

2026-04-22T20:16:42.617Z

5 months ago

Last modified

2026-07-27T17:34:54.330Z

2 months ago