Nixpkgs security tracker

Login with GitHub

Suggestion detail

Untriaged
created 1 month ago Activity log
  • Created suggestion
BaseCookie.js_output() does not neutralize embedded characters

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 products

CPython
  • <3.15.0

Matching in nixpkgs

Package maintainers