Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. mistune
  4. ›
  5. CVE-2017-16876

CVE-2017-16876: mistune Cross-site scripting (XSS) vulnerability

January 4, 2019 (updated September 24, 2024)

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

  • bugzilla.redhat.com/show_bug.cgi?id=1524596
  • github.com/advisories/GHSA-98gj-wwxm-cj3h
  • github.com/lepture/mistune
  • github.com/lepture/mistune/blob/master/CHANGES.rst
  • github.com/lepture/mistune/commit/5f06d724bc05580e7f203db2d4a4905fc1127f98
  • github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2017-18.yaml
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCLOQC4LQQC
  • nvd.nist.gov/vuln/detail/CVE-2017-16876

Code Behaviors & Features

Detect and mitigate CVE-2017-16876 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.8.1

Fixed versions

  • 0.8.1

Solution

Upgrade to version 0.8.1 or above.

Impact 6.1 MEDIUM

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

pypi/mistune/CVE-2017-16876.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:44 +0000.