CVE-2017-16876 json
mistune Cross-site scripting (XSS) vulnerability
published 2017-12-29 8 y ago modified 2026-06-17 4 mo ago also GHSA-98gj-wwxm-cj3h , PYSEC-2017-18 , EUVD-2017-0074
- cvss
- 6.1
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.2%
- EPSS 2.2% chance of exploitation in 30 days, percentile 82%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi mistune 0.8.1
- mistune_project mistune 0.8.1
- mistune Debian 14, Debian 13, Debian 12 0.8.1-1
debian advisories DEBIAN-CVE-2017-16876
- python-mistune openSUSE Tumbleweed 3.3.4-1.1
- python-mistune openSUSE Tumbleweed 3.0.2-2.5
opensuse advisories openSUSE-SU-2026:11585-1openSUSE-SU-2024:14148-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2017-16876 updated cvss 6.1
python-mistune: Cross-site-scripting
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.23% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | mistune | <0.8.1 |
0.8.1 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/lepture/mistune/commit/5f06d724bc05580e7f203db2d4a4905fc1127f98
web, patch, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCLOQC4LQQC/
vendor-advisory
-
github.com
/lepture/mistune/blob/master/CHANGES.rst
web, release-notes, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=1524596
web, issue-tracking, third-party-advisory, vdb-entry, report
-
nvd.nist.gov
/vuln/detail/CVE-2017-16876
advisory
-
github.com
/lepture/mistune
package
-
github.com
/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2017-18.yaml
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCLOQC4LQQC
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCLOQC4LQQC/
web
-
github.com
/advisories/GHSA-98gj-wwxm-cj3h
advisory
Sources
- CVE List CVE-2017-16876
- GitHub Advisory GHSA-98gj-wwxm-cj3h
- NVD CVE-2017-16876
- OSV PYSEC-2017-18
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.