Skip to content
OpenAdvisories
Medium · 6.1 CVE-2026-59929 EUVD-2026-42336GHSA-qfrw-5rxm-mhh2PYSEC-2026-2217

Mistune renderers/html.safe_url: HARMFUL_PROTOCOLS list misses legacy and chained schemes that historically chain to `javascript:` execution

Published Jul 8, 2026 · Updated Jul 9, 2026 · Assigned by GitHub_M

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

VendorProductAffectedFixed
lepture mistune < 3.3.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 mistune No fix yet —
Debian 13 mistune No fix yet —
Debian 12 mistune No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 mistune No fix yet —
Ubuntu 26.04 LTS mistune No fix yet —
Ubuntu 25.10 mistune No fix yet —
Ubuntu 24.04 LTS mistune No fix yet —
Ubuntu 22.04 LTS mistune No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS mistune No fix yet —
Ubuntu 18.04 LTS mistune No fix yet —
Ubuntu 16.04 LTS mistune No fix yet —
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 python-mistune 3.1.3-160000.5.1 SUSE-SU-2026:22655-1
SLES 16.0 python-mistune 3.1.3-160000.5.1 SUSE-SU-2026:22655-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 python-mistune 3.1.3-160000.5.1 openSUSE-SU-2026:21339-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI mistune < 3.3.0 3.3.0 GHSA-qfrw-5rxm-mhh2

Advisories 2

References