Description
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.
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | mistune | 0.8-1 | — |
| Debian 13 | mistune | 0.8-1 | — |
| Debian 12 | mistune | 0.8-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | mistune | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-mistune | 3.0.2-2.5 | openSUSE-SU-2026:11585-1, openSUSE-SU-2024:14148-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | mistune | < 0.8 | 0.8 | GHSA-hpv5-v8g5-c864 |
Advisories 2
- openSUSE-SU-2026:11585-1 python313-mistune-3.3.4-1.1 on GA media SUSE / openSUSE Security Updates · Aug 26, 2026
- openSUSE-SU-2024:14148-1 python310-mistune-3.0.2-2.5 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026