{"cve":"CVE-2017-16876","nvd":{"published":"2017-12-29T15:29:00.610","modified":"2026-06-17T01:10:04.403","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://bugzilla.redhat.com/show_bug.cgi?id=1524596","https://github.com/lepture/mistune/blob/master/CHANGES.rst","https://github.com/lepture/mistune/commit/5f06d724bc05580e7f203db2d4a4905fc1127f98","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCLOQC4LQQC/","https://bugzilla.redhat.com/show_bug.cgi?id=1524596"],"products":["fedoraproject:fedora","mistune_project:mistune"],"source":"nvd","synced_at":"2026-10-19T20:47:56.471723566+00:00"},"epss":{"cve":"CVE-2017-16876","score":0.02235,"percentile":0.82794,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-98gj-wwxm-cj3h","url":"https://osv.dev/vulnerability/GHSA-98gj-wwxm-cj3h","summary":"mistune Cross-site scripting (XSS) vulnerability","modified":"2024-09-24T21:34:24.653510Z","packages":[{"ecosystem":"PyPI","name":"mistune","purl":"pkg:pypi/mistune","ranges":["<0.8.1"],"fixed":["0.8.1"]}]},{"id":"PYSEC-2017-18","url":"https://osv.dev/vulnerability/PYSEC-2017-18","summary":"","modified":"2023-11-08T03:59:13.855357Z","packages":[{"ecosystem":"PyPI","name":"mistune","purl":"pkg:pypi/mistune","ranges":["<0.8.1"],"fixed":["0.8.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}