{"id":"CVE-2026-59929","published":"2026-07-08T16:20:38Z","modified":"2026-07-09T14:41:36Z","title":"Mistune renderers/html.safe_url: HARMFUL_PROTOCOLS list misses legacy and chained schemes that historically chain to…","vendor":"lepture","product":"mistune","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00341,"percentile":0.28374,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"}],"references":[{"url":"https://github.com/lepture/mistune/security/advisories/GHSA-qfrw-5rxm-mhh2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/lepture/mistune/commit/c7101fcbb6e8790e8e39157c5ca2238fc6dd6cbc","tags":["x_refsource_MISC"]},{"url":"https://github.com/lepture/mistune/releases/tag/v3.3.0","tags":["x_refsource_MISC"]}],"priority":{"score":9.9,"factors":[{"name":"EPSS percentile","points":5.67},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"lepture","affectedVersions":[{"vendor":"lepture","product":"mistune","versions":["< 3.3.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-09T14:21:09.261426Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mistune","vulnerableRanges":["<3.3.0"],"patched":["3.3.0"],"from":["GHSA-qfrw-5rxm-mhh2","PYSEC-2026-2217"],"provenance":"source"}],"summary":{"text":"The flaw is in the safe_url filter of the HTML renderer in lepture's mistune, a Python Markdown parser, where the list of disallowed URL schemes is incomplete. Because only javascript:, vbscript:, file:, and data: are blocked, legacy or chained schemes such as feed:, view-source:, jar:, and res: can reach rendered href and src attributes. An attacker who can supply Markdown content that is rendered can cause script to run in an affected user's browser, but this requires the victim to interact with the crafted content and depends on the scheme being handled by their user agent.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:58Z"},"euvd":{"id":"EUVD-2026-42336","exploited":false,"provenance":"source"}}