{"id":"CVE-2015-8862","aliases":["DEBIAN-CVE-2015-8862","EUVD-2017-0320","GHSA-w3w8-37jv-2c58","UBUNTU-CVE-2015-8862"],"status":"published","title":"Cross-Site Scripting in mustache","description":"mustache package before 2.2.1 for Node.js allows remote attackers to conduct cross-site scripting (XSS) attacks by leveraging a template with an attribute that is not quoted.","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-08","score":0.01655,"percentile":0.76734,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2017-01-23T21:00:00Z","modified":"2026-09-09T07:02:03Z","fixes":[{"ecosystem":"npm","package":"mustache","fixed_in":["2.2.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"mustache","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"mustache.js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.1-1","3.0.1-2","3.2.0-1","3.2.0-2"]},{"source":"osv","ecosystem":"Debian:13","package":"mustache.js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.1-1","3.0.1-2","3.2.0-1","3.2.0-2"]},{"source":"osv","ecosystem":"Debian:14","package":"mustache.js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.1-1","3.0.1-2","3.2.0-1","3.2.0-2"]},{"source":"osv","ecosystem":"npm","package":"mustache","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.2.1"}]}]}],"products":[{"vendor":"mustache.js_project","product":"mustache.js"}],"references":[{"url":"https://nodesecurity.io/advisories/62","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch","Vendor Advisory","advisory","evidence","fix"]},{"url":"http://www.securityfocus.com/bid/96436","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"https://www.tenable.com/security/tns-2016-18","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://www.openwall.com/lists/oss-security/2016/04/20/11","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory","article","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2015-8862","tags":["advisory"]},{"url":"https://github.com/janl/mustache.js/commit/378bcca8a5cfe4058f294a3dbb78e8755e8e0da5","tags":["web"]},{"url":"https://github.com/advisories/GHSA-w3w8-37jv-2c58","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/62","tags":["web"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2015-8862","tags":["advisory"]},{"url":"https://github.com/janl/mustache.js","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2015-8862","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2015-8862","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2015-8862","description":"mustache package before 2.2.1 for Node.js allows remote attackers to conduct cross-site scripting (XSS) attacks by leveraging a template with an attribute that is not quoted.","status":"published","published":"2017-01-23T21:00:00Z","modified":"2024-08-06T08:29:22.248Z","updated_at":"2026-11-02T14:35:40.900357Z"}],"euvd":[{"id":"EUVD-2017-0320","description":"mustache package before 2.2.1 for Node.js allows remote attackers to conduct cross-site scripting (XSS) attacks by leveraging a template with an attribute that is not quoted.","status":"published","published":"2017-01-23T21:00:00Z","modified":"2024-08-06T08:29:22Z","updated_at":"2026-11-03T01:57:25.869767Z"}],"ghsa":[{"id":"GHSA-w3w8-37jv-2c58","title":"Cross-Site Scripting in mustache","description":"Versions of `mustache` prior to 2.2.1 are affected by a cross-site scripting vulnerability when attributes in mustache templates are not quoted.\n\n\n\n### Example\nTemplate:\n```\u003ca href={{foo}}/\u003e```\n\nInput:\n```{ 'foo' : 'test.com onload=alert(1)'}```\n\nRendered result:\n```\u003ca href=test.com onload=alert(1)/\u003e```\n\n\n## Recommendation\n\nUpdate to version 2.2.1 or later.\nAlternatively, ensure that all attributes in hmustache templates are encapsulated with quotes.","status":"published","published":"2017-10-24T18:33:36Z","modified":"2023-01-09T05:03:23Z","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"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:05.071174Z"}],"nvd":[{"id":"CVE-2015-8862","description":"mustache package before 2.2.1 for Node.js allows remote attackers to conduct cross-site scripting (XSS) attacks by leveraging a template with an attribute that is not quoted.","status":"published","published":"2017-01-23T21:59:00.767Z","modified":"2026-06-17T00:35:23.303Z","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:03:16.97467Z"}],"osv":[{"id":"CVE-2015-8862","description":"mustache package before 2.2.1 for Node.js allows remote attackers to conduct cross-site scripting (XSS) attacks by leveraging a template with an attribute that is not quoted.","status":"published","published":"2017-01-23T21:59:00Z","modified":"2026-04-10T03:46:34.962512Z","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:01.068991Z"},{"id":"DEBIAN-CVE-2015-8862","description":"mustache package before 2.2.1 for Node.js allows remote attackers to conduct cross-site scripting (XSS) attacks by leveraging a template with an attribute that is not quoted.","status":"published","published":"2017-01-23T21:59:00.767Z","modified":"2026-09-09T07:02:03.867611735Z","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:27.04239Z"},{"id":"GHSA-w3w8-37jv-2c58","title":"Cross-Site Scripting in mustache","description":"Versions of `mustache` prior to 2.2.1 are affected by a cross-site scripting vulnerability when attributes in mustache templates are not quoted.\n\n\n\n### Example\nTemplate:\n```\u003ca href={{foo}}/\u003e```\n\nInput:\n```{ 'foo' : 'test.com onload=alert(1)'}```\n\nRendered result:\n```\u003ca href=test.com onload=alert(1)/\u003e```\n\n\n## Recommendation\n\nUpdate to version 2.2.1 or later.\nAlternatively, ensure that all attributes in hmustache templates are encapsulated with quotes.","status":"published","published":"2017-10-24T18:33:36Z","modified":"2023-11-08T03:58:03.869169Z","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"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:58.04805Z"},{"id":"UBUNTU-CVE-2015-8862","description":"mustache package before 2.2.1 for Node.js allows remote attackers to conduct cross-site scripting (XSS) attacks by leveraging a template with an attribute that is not quoted.","status":"withdrawn","published":"2017-01-23T21:59:00Z","modified":"2025-07-16T08:11:51.985035Z","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:11.100633Z"}]}}
