Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
5.1
CVE-2017-16876: Mistune before 0.8.1: Malicious code injected in web pages
CVE-2017-16876 · published 8 years ago
Summary
An attacker can inject malicious code into web pages, potentially leading to unauthorized actions on a visitor's browser. Mistune versions before 0.8.1 are affected. Update to version 0.8.1 or later to fix this issue.
What to do
- Update hsiaoming yang mistune to version 0.8.1.
- Update mistune_project mistune to version 0.8.1 or later.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| pip | hsiaoming yang | mistune |
< 0.8.1 Fix: upgrade to 0.8.1
|
| – | mistune_project | mistune |
< 0.8.1 cpe:2.3:a:mistune_project:mistune:*:*:*:*:*:*:*:* |
| – | fedoraproject | fedora |
26 cpe:2.3:o:fedoraproject:fedora:26:*:*:*:*:*:*:* |
Original advisory text
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...
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-16876
- https://github.com/lepture/mistune/commit/5f06d724bc05580e7f203db2d4a4905fc1127f...
- https://bugzilla.redhat.com/show_bug.cgi?id=1524596
- https://github.com/lepture/mistune/blob/master/CHANGES.rst
- https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2017-18....
- https://lists.fedoraproject.org/archives/list/[email protected]...
- https://github.com/advisories/GHSA-98gj-wwxm-cj3h
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro...
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit (estimated)
- Gives an attacker partial control (estimated)
Type
CWE-79Cross-site Scripting (XSS)
Timeline
Published29 Dec 2017
Updated29 Oct 2026
First seen6 Mar 2026
Track software like this
Free during beta