{"id":"UBUNTU-CVE-2017-16876","details":"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.","modified":"2026-11-24T14:51:46.954860738Z","published":"2017-12-29T15:29:00Z","upstream":["CVE-2017-16876"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-16876"},{"type":"REPORT","url":"https://github.com/lepture/mistune/commit/5f06d724bc05580e7f203db2d4a4905fc1127f98"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-16876"}],"affected":[{"package":{"name":"mistune","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/mistune?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6-2","0.7.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python-mistune","binary_version":"0.7.1-1"},{"binary_version":"0.7.1-1","binary_name":"python3-mistune"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-16876.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"NVD"},{"type":"Ubuntu","score":"medium","source":"SELF"}]}