CVE-2017-16876
mistune Cross-site scripting (XSS) vulnerability
Reported by mitre · Published December 29, 2017
mistune is fixed in 5f06d724bc05580e7f203db2d4a4905fc1127f98 and 0.8.1 (PyPI)
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 versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| mistune | PyPI | 5f06d724bc05580e7f203db2d4a4905fc1127f98, 0.8.1 |
| mistune | mistune_project | 0.8.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| mistune_project | mistune | |
| PyPI | mistune | 0 |
Timeline
- Dec 29, 2017 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 10, 2026 Security Advisory
- Oct 2, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2017-16876
vulnetix vdb fixes CVE-2017-16876
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-16876/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- FEDORA-2017-7b4149911a vendor-advisoryx_refsource_FEDORA
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2017-16876 advisory
- https://github.com/advisories/GHSA-98gj-wwxm-cj3h advisory
- https://github.com/lepture/mistune url
- https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2017-18.yaml advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCLOQC4LQQC url