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 products
mistune_project: mistune
References3
- github.com/lepture/mistune/commit/c7101fcbb6e8790e8e39157c5ca22… Patch
- github.com/lepture/mistune/security/advisories/GHSA-qfrw-5rxm-m… ExploitThird Party Advisory
- github.com/lepture/mistune/releases/tag/v3.3.0 Release Notes
Metrics
- CVSS 3.1
-
6.1
MEDIUM
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - EPSS — exploit probability
- 0% percentile: 28 · as of 15 November 2026
- CWE
- CWE-79CWE-184
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.