Description
Cross-site scripting (XSS) vulnerability in the _keyify function in mistune.py in Mistune before 0.8.1 allows remote attackers to inject arbitrary web script or HTML by leveraging failure to escape the "key" argument.
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-1 | — |
| Debian 13 | mistune | 0.8.1-1 | — |
| Debian 12 | mistune | 0.8.1-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.1 | 0.8.1 | GHSA-98gj-wwxm-cj3h |
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