Skip to content
OpenAdvisories
Medium · 6.1 CVE-2017-16876 EUVD-2017-0074GHSA-98gj-wwxm-cj3hPYSEC-2017-18

mistune Cross-site scripting (XSS) vulnerability

Published Dec 29, 2017 · Updated Aug 5, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 mistune 0.8.1-1 —
Debian 13 mistune 0.8.1-1 —
Debian 12 mistune 0.8.1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS mistune No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-mistune 3.0.2-2.5 openSUSE-SU-2026:11585-1, openSUSE-SU-2024:14148-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI mistune < 0.8.1 0.8.1 GHSA-98gj-wwxm-cj3h

Advisories 2

References