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 VendorProductAffected 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.
Fix within
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)
Severity
5.1 Medium
Exploitation
2% chance of attack within 30 days
Type
CWE-79Cross-site Scripting (XSS)
Timeline
Published29 Dec 2017
Updated29 Oct 2026
First seen6 Mar 2026
Sources
Track software like this
Free during beta