JLSEC-2026-1639: Low severity julia/python_jll vulnerability
http.cookies.Morsel.jsoutput() 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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Base64-encode the cookie value before passing it to http.cookies.Morsel.js_output() to prevent it from escaping the generated script element.
Event History
Frequently Asked Questions
Which deployments should be reviewed first?
Review deployments of julia/python_jll that generate cookie-related inline JavaScript through http.cookies.Morsel.js_output(). Exposure depends on whether cookie values can contain attacker-controlled content.
What must an attacker be able to influence to exploit this issue?
The attacker needs a cookie value that is emitted through js_output() and contains the HTML parser-sensitive </script> sequence. The supplied vector also indicates user interaction is required.
What can be done if updating is not immediately possible?
Base64-encode the cookie value before generating the JavaScript output. This prevents the cookie value from escaping the generated script element.
How can we check whether our application is affected?
Search the application and its dependencies for uses of http.cookies.Morsel.js_output(). For each use, determine whether the cookie value can include untrusted input or the </script> sequence.