{"id":"CVE-2026-59923","published":"2026-07-08T16:14:39Z","modified":"2026-07-08T16:41:52Z","title":"Mistune: XSS via percent-encoded javascript URI bypass in safe_url()","vendor":"lepture","product":"mistune","tier":"tail","description":{"text":"Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, HTMLRenderer.safe_url() does not block percent-encoded javascript URIs, allowing attacker-supplied Markdown links or images to bypass URL protections and execute script in rendered HTML. 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.00348,"percentile":0.20816,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/lepture/mistune/security/advisories/GHSA-8c25-4j27-2rv3","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":8.4,"factors":[{"name":"EPSS percentile","points":4.16},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"lepture","affectedVersions":[{"vendor":"lepture","product":"mistune","versions":["< 3.3.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-08T16:41:40.162930Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mistune","vulnerableRanges":["<3.3.0"],"patched":["3.3.0"],"from":["GHSA-8c25-4j27-2rv3","PYSEC-2026-2211"],"provenance":"source"}],"summary":{"text":"The Mistune Python Markdown parser, specifically its HTMLRenderer.safe_url() function, fails to block percent-encoded javascript URIs in links and images, so the protection can be bypassed. An unauthenticated remote attacker can exploit this by supplying crafted Markdown that a user must view or interact with, causing script to execute in the rendered HTML; the flaw affects versions before 3.3.0.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:19Z"},"euvd":{"id":"EUVD-2026-42331","exploited":false,"provenance":"source"}}