{"id":"CVE-2017-16876","published":"2017-12-29T15:00:00Z","modified":"2024-08-05T20:35:21Z","title":"Cross-site scripting (XSS) vulnerability in the _keyify function in mistune.py in Mistune before 0.8.1 allows remote…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02235,"percentile":0.83225,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/lepture/mistune/blob/master/CHANGES.rst","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCLOQC4LQQC/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://github.com/lepture/mistune/commit/5f06d724bc05580e7f203db2d4a4905fc1127f98","tags":["x_refsource_CONFIRM"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1524596","tags":["x_refsource_CONFIRM"]}],"priority":{"score":16.6,"factors":[{"name":"EPSS percentile","points":16.64}]},"affected":[{"ecosystem":"PyPI","package":"mistune","vulnerableRanges":["<0.8.1"],"patched":["0.8.1"],"from":["GHSA-98gj-wwxm-cj3h","PYSEC-2017-18"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting (XSS) vulnerability in the _keyify function in mistune.py in Mistune before 0.8.1, caused by failure to escape the \"key\" argument. An attacker who can supply a crafted \"key\" value can inject arbitrary web script or HTML into rendered output; the material provided does not specify further access, authentication, or user-interaction conditions.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:34:19Z"},"euvd":{"id":"EUVD-2017-0074","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mistune-cve-2017-15612","parents":[{"from":"CVE-2017-15612","to":"CVE-2017-16876","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mistune","fromFixed":"0.8","toFixed":"0.8.1","daysApart":71},{"kind":"same-code","provenance":"machine","files":["mistune.py"],"commits":["https://github.com/lepture/mistune/commit/d6f0b6402299bf5a380e7b4e77bd80e8736630fe","https://github.com/lepture/mistune/commit/5f06d724bc05580e7f203db2d4a4905fc1127f98"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2017-15612","published":"2017-10-19","fixed":"0.8","kev":false},{"cve":"CVE-2017-16876","published":"2017-12-29","fixed":"0.8.1","kev":false},{"cve":"CVE-2022-34749","published":"2022-07-25","fixed":"2.0.3","kev":false},{"cve":"CVE-2026-33079","published":"2026-05-06","fixed":"3.2.1","kev":false},{"cve":"CVE-2026-44708","published":"2026-05-26","fixed":"3.2.1","kev":false}],"package":"PyPI:mistune"}}