CVE-2026-6019: http.cookies.Morsel - Stored XSS
- Cve: CVE-2026-6019
- Name: http.cookies.Morsel - Stored XSS
- 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.
- Impact: Attackers can execute arbitrary JavaScript in the victim's browser, leading to session hijacking or other malicious actions.
- Remediation: Mitigate by base64-encoding cookie values to prevent script injection.
- Vulnerability type: stored_xss
- Vulnerability impact: stored_xss
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00219
- Epss percentile: 0.12395
- Assignee: [email protected]
- Published at: 2026-04-22T20:16:42Z
- Age in days: 216
- Modified at: 2026-11-10T13:19:38Z
- Patch available: yes
- Public exploits total: 1
- References total: 7
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-6019
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-150 | Improper Neutralization of Escape, Meta, or Control Sequences |
| CWE-116 | Improper Encoding or Escaping of Output |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/python/cpython/issues/90309 | nvd | 2026-04-22 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| python:python | = 3.15.0 alpha8; = 3.15.0 alpha7; = 3.15.0 alpha6; = 3.15.0 alpha5; = 3.15.0 alpha4; = 3.15.0 alpha1; = 3.15.0 alpha2; = 3.15.0 alpha3; >= 3.14.0, <= 3.14.4; < 3.13.14 | no | nvd | /v1/products/python/python |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| python/cpython | commit, fix, issues, pull | yes | /v1/repositories/python/cpython |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-04-22
- Remote: yes
- Exposed hosts: 5115604
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports