CVE-2017-16876Mistune Project Mistune
Medium 6.1 No auth needed
Follow: this CVE · Mistune Project · Mistune Project Mistune We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.0
- 6.1
- EPSS
- 2.2% probability of exploitation in 30 days · percentile 84
- Auth required
- No
- Published
- Dec 29, 2017
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Mistune.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | mistune |
< 0.8.1 |
0.8.1 |
pip install "mistune>=0.8.1" |
| PyPI | mistune |
< 0.8.1 |
0.8.1 |
pip install "mistune>=0.8.1" |
Per OSV / GitHub Advisories (GHSA-98gj-wwxm-cj3h, PYSEC-2017-18). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mistune_project | mistune | < 0.8.1 |
| fedoraproject | fedora | 26 |
Official advisories
- python313-mistune-3.3.4-1.1 on GA media · SUSE · openSUSE-SU-2026:11585-1 · Aug 24, 2026 Medium
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- bugzilla.redhat.com Issue Tracking Third Party Advisory VDB Entry
- github.com Release Notes Third Party Advisory
- github.com Patch Third Party Advisory
- lists.fedoraproject.org