CVE-2017-16876

Description

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.

Severity
MEDIUM
CVSS v3
6.1
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N · source nvd
Exploit chance (EPSS)
2.235%
chance of exploitation in the next 30 days
higher than 83.1% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2017-12-29Published by the CNA15:00 UTC
  2. 2019-01-04GitHub advisory published (GHSA-98gj-wwxm-cj3h)371 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-98gj-wwxm-cj3h, affected packages:

PackageVulnerable versionsFixed in
PyPI mistunebefore 0.8.10.8.1

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
mistune_project mistunebefore 0.8.1fixed in 0.8.10.8.1
fedoraproject fedora26no fix listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources