CVE-2026-59923: Mistune · XSS via percent-encoded javascript URI bypass in safe_url()
Affects jupyterlabSource GCVE Database
Not known to be exploited · CVSS 6.1 Medium : upgrade to 4.6.1 when convenient.
Data as of 30 Oct 2026, 09:14 UTC
- Patch
- Available – fixed in 4.6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 8 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade jupyterlab to 4.6.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewjupyterlabpkg:brew/jupyterlabOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fixed version of Mistune is available in 4.6.1. Users and developers should upgrade to Mistune version 4.6.1 or later to remediate this vulnerability. Until upgraded, additional URL sanitization should be applied to user-supplied Markdown links to prevent percent-encoded javascript URIs from being rendered.
Description
Mistune versions from 1.2.0 up to but not including 4.6.1 contain a cross-site scripting (XSS) vulnerability in the safe_url() function. The function fails to decode percent-encoded URLs before checking for harmful schemes like "javascript:", allowing attackers to bypass this filter using percent-encoded javascript URIs. This leads to execution of arbitrary JavaScript in the victim's browser when a malicious Markdown link is rendered and clicked. The vulnerability is fixed in version 4.6.1.
References
- github.com/lepture/mistune/security/advisories/GHSA-8c25-4j27-2rv3 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-59923 (opens in a new tab)
- github.com/lepture/mistune/commit/c7101fcbb6e8790e8e39157c5ca2238fc6dd6cbc (opens in a new tab)
- github.com/lepture/mistune (opens in a new tab)
- github.com/lepture/mistune/releases/tag/v3.3.0 (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2211.yaml (opens in a new tab)