mistune.py in Mistune 0.7.4 allows XSS via an unexpected newline (such as in…
Priority LOW 29CWE-79Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
mistune.py in Mistune 0.7.4 allows XSS via an unexpected newline (such as in java\nscript:) or a crafted email address, related to the escape and autolink functions.
Why it matters now
EPSS 0.00931 60th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed mistune (PyPI): 0.8
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | mistune (PyPI) | before 0.8 | 0.8 | Patch available | GHSA-hpv5-v8g5-c864 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- mistune (PyPI) Vendor— Affected before 0.8 Fixed in 0.8 Patch available GHSA-hpv5-v8g5-c864
Remediation
- Fix · GHSA-hpv5-v8g5-c864 mistune (PyPI) Fixed in 0.8 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2017-15612
- 2026-10-03 Alias added: GHSA-hpv5-v8g5-c864
References
Advisory 2
More lepture Mistune vulnerabilities
- TI-2026-42736 Mistune block_parser: quadratic-time parsing on long lists of repeated reference-link definitions CVSS 3.1HIGH 7.5
- TI-2026-42730 Regular expression denial of service in lepture mistune CVSS 3.1HIGH 7.5
- TI-2026-42731 Mistune: XSS via percent-encoded javascript URI bypass in safe_url() CVSS 3.1MEDIUM 6.1
- TI-2026-32774 Mistune Image Directive CSS Injection Vulnerability CVSS 3.1MEDIUM 6.1
- TI-2026-32773 Mistune TOC Anchor Injection XSS CVSS 3.1MEDIUM 6.1
- TI-2026-32595 Mistune Math Plugin XSS Escape Bypass CVSS 3.1MEDIUM 6.1
Sources
- CVE-2017-15612 · CVE Program
- CVE-2017-15612 · NVD
- FIRST EPSS
- GHSA-hpv5-v8g5-c864 · GitHub Advisory Database · CC BY 4.0
- CVE-2017-15612 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences