lepture/mistune · Security
mistune Cross-site scripting (XSS) vulnerability
- GHSA ID
- GHSA-98gj-wwxm-cj3h
- CVE ID
- CVE-2017-16876
- Severity
- medium
- Published
- Updated
- CVSS
- 6.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS v3
- 6.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS v4
- 5.1 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
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.
CWEs
- CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-16876 ↗
- https://github.com/lepture/mistune/commit/5f06d724bc05580e7f203db2d4a4905fc1127f98 ↗
- 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.yaml ↗
- https://lists.fedoraproject.org/archives/list/[email protected]/message/NUR3GMHQBMA3UC4PFMCK6GCLOQC4LQQC ↗
- https://github.com/advisories/GHSA-98gj-wwxm-cj3h ↗