SecurityContext

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

IdName
CWE-150Improper Neutralization of Escape, Meta, or Control Sequences
CWE-116Improper Encoding or Escaping of Output

Public exploits

UrlSourceAdded date
https://github.com/python/cpython/issues/90309nvd2026-04-22

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/python/cpython/commit/3c59b8b53fc75c7f9578d16fb8201ceb43e8f76cPatch
https://github.com/python/cpython/commit/76b3923d688c0efc580658476c5f525ec8735104Patch
https://github.com/python/cpython/commit/f795e042043dfe26c42e1971d4502c1cdc4c65b8Patch
https://github.com/python/cpython/pull/148848Issue Tracking, Patch
https://mail.python.org/archives/list/[email protected]/thread/IVNWGV2BBNC3RHQAFS22UP4DY56SAXX3/Mailing List, Vendor Advisory
https://github.com/python/cpython/issues/90309Exploit, Issue Tracking
https://cert-portal.siemens.com/productcert/html/ssa-457936.html

Products

ProductAffectedPlatform boundSourcesUrl
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.14nonvd/v1/products/python/python

Projects

RepositoryLink kindsIndexedUrl
python/cpythoncommit, fix, issues, pullyes/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