Vulnerability · Published Jul 8, 2026 · Assigned by GitHub_M
CVE-2026-59929Mistune renderers/html.safe_url: HARMFUL_PROTOCOLS list misses legacy and chained schemes that historically chain to `javascript:` execution
Medium 6.1
In plain English
A medium-severity cross-site scripting in mistune from lepture. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 28% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, the safe_url filter in src/mistune/renderers/html.py blocks only javascript:, vbscript:, file:, and data: schemes, allowing legacy or chained schemes such as feed:, view-source:, jar:, livescript:, mocha:, ms-its:, mk:, and res: to reach rendered href and src attributes and potentially execute script in affected user agents. This issue is fixed in version 3.3.0.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | mistune | no fix listed | DEBIAN-CVE-2026-59929 |
| Debian:13 | mistune | no fix listed | DEBIAN-CVE-2026-59929 |
| Debian:14 | mistune | no fix listed | DEBIAN-CVE-2026-59929 |
| PyPI | mistune | 3.3.0 | GHSA-qfrw-5rxm-mhh2 |
| PyPI | mistune | 3.3.0 | PYSEC-2026-2217 |
| Ubuntu:22.04:LTS | mistune | no fix listed | UBUNTU-CVE-2026-59929 |
| Ubuntu:24.04:LTS | mistune | no fix listed | UBUNTU-CVE-2026-59929 |
| Ubuntu:25.10 | mistune | no fix listed | UBUNTU-CVE-2026-59929 |
| Ubuntu:26.04:LTS | mistune | no fix listed | UBUNTU-CVE-2026-59929 |
| Ubuntu:26.10 | mistune | no fix listed | UBUNTU-CVE-2026-59929 |
Affected products (as reported)
Weakness: CWE-79, CWE-184 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
References
- https://github.com/lepture/mistune/security/advisories/GHSA-qfrw-5rxm-mhh2 x_refsource_CONFIRM
- https://github.com/lepture/mistune/commit/c7101fcbb6e8790e8e39157c5ca2238fc6dd6cbc x_refsource_MISC
- https://github.com/lepture/mistune/releases/tag/v3.3.0 x_refsource_MISC