{"id":"CVE-2017-16876","aliases":["DEBIAN-CVE-2017-16876","EUVD-2017-0074","GHSA-98gj-wwxm-cj3h","MGASA-2018-0066","PYSEC-2017-18","UBUNTU-CVE-2017-16876","openSUSE-SU-2024:11239-1","openSUSE-SU-2024:13453-1","openSUSE-SU-2024:14148-1","openSUSE-SU-2026:11585-1"],"status":"published","title":"mistune Cross-site scripting (XSS) vulnerability","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.","severity":{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.02235,"percentile":0.82921,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2017-12-29T15:00:00Z","modified":"2026-10-20T10:47:47Z","fixes":[{"ecosystem":"PyPI","package":"mistune","fixed_in":["0.8.1"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"mistune","fixed_in":["0.8.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"mistune","fixed_in":["0.8.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"mistune","fixed_in":["0.8.1-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"mistune","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"mistune","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"mistune","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"mistune","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.1-1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"mistune","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.1"}]}],"versions":["0.1.0","0.2.0","0.3.0","0.3.1","0.4","0.4.1","0.5","0.5.1","0.6","0.7","0.7.1","0.7.2","0.7.3","0.7.4","0.8"]},{"source":"osv","ecosystem":"Mageia:6","package":"python-mistune","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.2-1.1.mga6"}]}],"bundled":2},{"source":"osv","ecosystem":"PyPI","package":"mistune","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"5f06d724bc05580e7f203db2d4a4905fc1127f98"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.1"}]}],"versions":["0.1.0","0.2.0","0.3.0","0.3.1","0.4","0.4.1","0.5","0.5.1","0.6","0.7","0.7.1","0.7.2","0.7.3","0.7.4","0.8"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"mistune","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6-2","0.7.1-1"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"python-mistune","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.2-2.5"}]}],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"python-mistune","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.4-1.1"}]}],"bundled":2}],"products":[{"vendor":"fedoraproject","product":"fedora"},{"vendor":"mistune_project","product":"mistune"}],"references":[{"url":"https://github.com/lepture/mistune/blob/master/CHANGES.rst","tags":["x_refsource_CONFIRM","x_transferred","Release Notes","Third Party Advisory","advisory","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCLOQC4LQQC/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://github.com/lepture/mistune/commit/5f06d724bc05580e7f203db2d4a4905fc1127f98","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1524596","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Third Party Advisory","VDB Entry","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16876","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2017-18.yaml","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCLOQC4LQQC","tags":["web"]},{"url":"https://github.com/advisories/GHSA-98gj-wwxm-cj3h","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-16876","tags":["advisory"]},{"url":"https://github.com/lepture/mistune","tags":["package"]},{"url":"https://advisories.mageia.org/MGASA-2018-0066.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=22276","tags":["report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/NUR3GMHQBMA3UC4PFMCK6GCLOQC4LQQC/","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NUR3GMHQBMA3UC4PFMCK6GCLOQC4LQQC/","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2017-16876","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-16876","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2017-15612","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-16876","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-34749","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2017-16876","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.","status":"published","published":"2017-12-29T15:00:00Z","modified":"2024-08-05T20:35:21.32Z","updated_at":"2026-11-02T14:33:21.747294Z"}],"euvd":[{"id":"EUVD-2017-0074","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.","status":"published","published":"2017-12-29T15:00:00Z","modified":"2024-08-05T20:35:21Z","updated_at":"2026-11-03T02:23:11.533108Z"}],"ghsa":[{"id":"GHSA-98gj-wwxm-cj3h","title":"mistune Cross-site scripting (XSS) vulnerability","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.","status":"published","published":"2019-01-04T17:47:50Z","modified":"2024-09-24T21:24:31Z","cvss":[{"version":"4.0","score":5.1,"vector":"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","level":"medium"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:38:06.29677Z"}],"nvd":[{"id":"CVE-2017-16876","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.","status":"published","published":"2017-12-29T15:29:00.61Z","modified":"2026-06-17T01:10:04.403Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:04:11.215487Z"}],"osv":[{"id":"CVE-2017-16876","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.","status":"published","published":"2017-12-29T15:29:00.61Z","modified":"2026-10-20T10:47:47.973154969Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:04.853379Z"},{"id":"DEBIAN-CVE-2017-16876","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.","status":"published","published":"2017-12-29T15:29:00.61Z","modified":"2026-09-01T20:03:45.663881922Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:29.100767Z"},{"id":"GHSA-98gj-wwxm-cj3h","title":"mistune Cross-site scripting (XSS) vulnerability","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.","status":"published","published":"2019-01-04T17:47:50Z","modified":"2024-09-24T21:34:24.65351Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"},{"version":"4.0","score":5.1,"vector":"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","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:43.524801Z"},{"id":"UBUNTU-CVE-2017-16876","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.","status":"published","published":"2017-12-29T15:29:00Z","modified":"2025-10-24T04:46:36Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:54:14.563448Z"},{"id":"MGASA-2018-0066","title":"Updated python-mistune packages fix security vulnerabilities","description":"mistune.py in Mistune 0.7.4 allows XSS via an unexpected newline (such\nas in java\\nscript:) or a crafted email address, related to the escape\nand autolink functions (CVE-2017-15612).\n\nA cross-site-scripting vulnerability was found in python-mistune\n(CVE-2017-16876).\n","status":"published","published":"2018-01-07T16:06:39Z","modified":"2026-04-16T06:24:36.832139866Z","updated_at":"2026-11-02T15:49:40.442238Z"},{"id":"openSUSE-SU-2024:11239-1","title":"python36-mistune-0.8.4-3.5 on GA media","description":"These are all security issues fixed in the python36-mistune-0.8.4-3.5 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T03:10:26.448625Z","updated_at":"2026-11-02T16:58:34.894275Z"},{"id":"openSUSE-SU-2024:13453-1","title":"python310-mistune2-2.0.5-1.1 on GA media","description":"These are all security issues fixed in the python310-mistune2-2.0.5-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:27:46.52587Z","updated_at":"2026-11-02T16:58:36.327643Z"},{"id":"openSUSE-SU-2024:14148-1","title":"python310-mistune-3.0.2-2.5 on GA media","description":"These are all security issues fixed in the python310-mistune-3.0.2-2.5 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-07-12T00:00:00Z","modified":"2026-02-04T02:57:28.226215Z","updated_at":"2026-11-02T16:58:36.662953Z"},{"id":"openSUSE-SU-2026:11585-1","title":"python313-mistune-3.3.4-1.1 on GA media","description":"These are all security issues fixed in the python313-mistune-3.3.4-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2026-08-24T00:00:00Z","modified":"2026-08-26T18:23:38.0806636Z","updated_at":"2026-11-02T16:58:39.516824Z"},{"id":"PYSEC-2017-18","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.","status":"published","published":"2017-12-29T15:29:00Z","modified":"2023-11-08T03:59:13.855357Z","updated_at":"2026-11-02T15:52:51.645172Z"}]}}
