# CVE-2026-59923: Mistune: XSS via percent-encoded javascript URI bypass in safe_url()

- 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.24%, higher than 15% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-08T16:14:39.266Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-8c25-4j27-2rv3, PYSEC-2026-2211
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, 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, 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.

(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-8c25-4j27-2rv3> (exploit, evidence, vendor-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-59923> (advisory)
- <https://github.com/lepture/mistune> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2211.yaml> (web)

## Sources

- CVE List: [CVE-2026-59923](https://www.cve.org/CVERecord?id=CVE-2026-59923), CVE Terms of Use, modified 2026-07-08
- GitHub Advisory Database: [GHSA-8c25-4j27-2rv3](https://github.com/advisories/GHSA-8c25-4j27-2rv3), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-59923](https://nvd.nist.gov/vuln/detail/CVE-2026-59923), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-2211](https://osv.dev/vulnerability/PYSEC-2026-2211), CC-BY-4.0, modified 2026-07-13

---

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