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

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 14% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-08T16:20:38.139Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-qfrw-5rxm-mhh2, PYSEC-2026-2217
- Weaknesses: CWE-79, CWE-184
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- lepture mistune: < 3.3.0
- mistune (PyPI): before 3.3.0
- mistune_project mistune: before 3.3.0

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/lepture/mistune/security/advisories/GHSA-qfrw-5rxm-mhh2> (exploit, evidence, third-party-advisory, web)
- <https://github.com/lepture/mistune/commit/c7101fcbb6e8790e8e39157c5ca2238fc6dd6cbc> (fix, patch, web)
- <https://github.com/lepture/mistune/releases/tag/v3.3.0> (advisory, release-notes, web)
- <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)

## Sources

- CVE List: [CVE-2026-59929](https://www.cve.org/CVERecord?id=CVE-2026-59929), CVE Terms of Use, modified 2026-07-09
- GitHub Advisory Database: [GHSA-qfrw-5rxm-mhh2](https://github.com/advisories/GHSA-qfrw-5rxm-mhh2), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-59929](https://nvd.nist.gov/vuln/detail/CVE-2026-59929), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-2217](https://osv.dev/vulnerability/PYSEC-2026-2217), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-59929 · Whole record: https://cve.day/CVE-2026-59929.json · Rebuilt by cve.day 2026-11-25T22:59:27.406Z
