CVE-2017-16876
MEDIUM 6.1CVSS 3.0mistune Cross-site scripting (XSS) vulnerability
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.
- Published
- 29 Dec 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-98gj-wwxm-cj3hPYSEC-2017-18
- Sources
- NVDJSONOSV GHSA-98gj-wwxm-cj3hJSONOSV PYSEC-2017-18JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mistune_project | mistunecpe:2.3:a:mistune_project:mistune:*:*:*:*:*:*:*:* |
< 0.8.1 | 0.8.1 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:26:*:*:*:*:*:*:* |
= 26 | |
| OSV | PyPI | mistune | < 0.8.1 | 0.8.1 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1524596 · Issue Tracking, Third Party Advisory, VDB Entry, WEB, REPORT
- https://github.com/lepture/mistune/blob/master/CHANGES.rst · Release Notes, Third Party Advisory, WEB
- https://github.com/lepture/mistune/commit/5f06d724bc05580e7f203db2d4a4905fc1127f98 · Patch, Third Party Advisory, WEB, FIX
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCLOQC4LQQC/
- https://nvd.nist.gov/vuln/detail/CVE-2017-16876 · ADVISORY
- https://github.com/lepture/mistune · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2017-18.yaml · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCLOQC4LQQC · WEB
- https://github.com/advisories/GHSA-98gj-wwxm-cj3h · ADVISORY
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 29 Dec 2017)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Dec 2017)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 4 Jan 2019)