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.
Attack Parameters
Impact Assessment
CVSS Vector v4.0
Weakness Type (CWE)
Vulnerable Products 10
| Configuration | From (including) | Up to (excluding) |
|---|---|---|
|
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
|
— |
3.13.14
|
|
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
|
3.14.0
|
<= 3.14.4
|
|
Python Python
cpe:2.3:a:python:python:3.15.0:alpha1:*:*:*:*:*:*
|
— | — |
|
Python Python
cpe:2.3:a:python:python:3.15.0:alpha2:*:*:*:*:*:*
|
— | — |
|
Python Python
cpe:2.3:a:python:python:3.15.0:alpha3:*:*:*:*:*:*
|
— | — |
|
Python Python
cpe:2.3:a:python:python:3.15.0:alpha4:*:*:*:*:*:*
|
— | — |
|
Python Python
cpe:2.3:a:python:python:3.15.0:alpha5:*:*:*:*:*:*
|
— | — |
|
Python Python
cpe:2.3:a:python:python:3.15.0:alpha6:*:*:*:*:*:*
|
— | — |
|
Python Python
cpe:2.3:a:python:python:3.15.0:alpha7:*:*:*:*:*:*
|
— | — |
|
Python Python
cpe:2.3:a:python:python:3.15.0:alpha8:*:*:*:*:*:*
|
— | — |