CVE-2026-59929
MEDIUM 6.1CVSS 3.1Mistune renderers/html.safe_url: HARMFUL_PROTOCOLS list misses legacy and chained schemes that historically chain to `javascript:` execution
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.
- Published
- 8 Jul 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-184CWE-79
- Also known as
- GHSA-qfrw-5rxm-mhh2PYSEC-2026-2217
- Sources
- NVDJSONOSV GHSA-qfrw-5rxm-mhh2JSONOSV PYSEC-2026-2217JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mistune_project | mistunecpe:2.3:a:mistune_project:mistune:*:*:*:*:*:*:*:* |
< 3.3.0 | 3.3.0 |
| OSV | PyPI | mistune | < 3.3.0 | 3.3.0 |
References
- https://github.com/lepture/mistune/commit/c7101fcbb6e8790e8e39157c5ca2238fc6dd6cbc · Patch, WEB, FIX
- https://github.com/lepture/mistune/releases/tag/v3.3.0 · Release Notes, WEB, ADVISORY
- https://github.com/lepture/mistune/security/advisories/GHSA-qfrw-5rxm-mhh2 · Exploit, Third Party Advisory, WEB, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2026-59929 · ADVISORY
- https://github.com/lepture/mistune · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2217.yaml · WEB
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 8 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 8 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 20 Jul 2026)