GitHub Advisory Database
GHSA-hpv5-v8g5-c864
Cross-site Scripting in Mistune
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | mistune | All versions before 0.8 (fixed in 0.8) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-15612
- https://github.com/lepture/mistune/pull/140
- https://github.com/lepture/mistune/commit/d6f0b6402299bf5a380e7b4e77bd80e8736630fe
- https://github.com/advisories/GHSA-hpv5-v8g5-c864
- https://github.com/lepture/mistune
- https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2017-80.yaml