{"id":"CVE-2015-8856","aliases":["DEBIAN-CVE-2015-8856","EUVD-2017-0311","GHSA-v633-x5vv-hqwc","UBUNTU-CVE-2015-8856"],"status":"published","title":"Cross-Site Scripting in serve-index","description":"Cross-site scripting (XSS) vulnerability in the serve-index package before 1.6.3 for Node.js allows remote attackers to inject arbitrary web script or HTML via a crafted file or directory name.","severity":{"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","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02477,"percentile":0.8467,"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:01:45Z","fixes":[{"ecosystem":"npm","package":"serve-index","fixed_in":["1.6.3"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"node-serve-index","fixed_in":["1.9.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"node-serve-index","fixed_in":["1.9.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"node-serve-index","fixed_in":["1.9.1-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"serve-index","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.3"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"node-serve-index","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"node-serve-index","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"node-serve-index","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.1-1"}]}]},{"source":"osv","ecosystem":"npm","package":"serve-index","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.6.3"}]}]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"node-serve-index","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.0-1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"node-serve-index","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.0-1"]}],"products":[{"vendor":"openjsf","product":"serve-index"}],"references":[{"url":"http://www.securityfocus.com/bid/96392","tags":["vdb-entry","x_refsource_BID","x_transferred","Broken Link","web"]},{"url":"https://nodesecurity.io/advisories/34","tags":["x_refsource_CONFIRM","x_transferred","Patch","Vendor Advisory","advisory","fix"]},{"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-8856","tags":["advisory"]},{"url":"https://github.com/expressjs/serve-index/issues/28","tags":["web","report"]},{"url":"https://github.com/expressjs/serve-index/commit/7381a1d1458959e57ee53ac932b06ff17904777e","tags":["web"]},{"url":"https://web.archive.org/web/20200227190911/http://www.securityfocus.com/bid/96392","tags":["web"]},{"url":"https://github.com/advisories/GHSA-v633-x5vv-hqwc"},{"url":"https://security-tracker.debian.org/tracker/CVE-2015-8856","tags":["advisory"]},{"url":"https://github.com/expressjs/serve-index","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2015-8856","tags":["report"]},{"url":"https://nodesecurity.io/advisories/serve-static-xss","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2015-8856","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2015-8856","description":"Cross-site scripting (XSS) vulnerability in the serve-index package before 1.6.3 for Node.js allows remote attackers to inject arbitrary web script or HTML via a crafted file or directory name.","status":"published","published":"2017-01-23T21:00:00Z","modified":"2024-08-06T08:29:22.028Z","updated_at":"2026-11-02T14:35:41.26549Z"}],"euvd":[{"id":"EUVD-2017-0311","description":"Cross-site scripting (XSS) vulnerability in the serve-index package before 1.6.3 for Node.js allows remote attackers to inject arbitrary web script or HTML via a crafted file or directory name.","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-v633-x5vv-hqwc","title":"Cross-Site Scripting in serve-index","description":"Versions 1.6.2 and earlier of `serve-index` are affected by a cross-site scripting vulnerability. Because file and directory names are not escaped in the module's HTML output, a remote attacker that can influence file or directory names can launch a persistent cross-site scripting attack on the application.\n\n\n## Recommendation\n\nUpdate to version 1.6.3 or later.","status":"published","published":"2017-10-24T18:33:36Z","modified":"2023-11-05T05:00:31Z","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:37:12.407027Z"}],"nvd":[{"id":"CVE-2015-8856","description":"Cross-site scripting (XSS) vulnerability in the serve-index package before 1.6.3 for Node.js allows remote attackers to inject arbitrary web script or HTML via a crafted file or directory name.","status":"published","published":"2017-01-23T21:59:00.563Z","modified":"2026-06-17T00:35:22.59Z","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","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-8856","description":"Cross-site scripting (XSS) vulnerability in the serve-index package before 1.6.3 for Node.js allows remote attackers to inject arbitrary web script or HTML via a crafted file or directory name.","status":"published","published":"2017-01-23T21:59:00Z","modified":"2026-04-10T03:45:35.027919Z","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"}],"updated_at":"2026-11-02T15:44:01.068991Z"},{"id":"DEBIAN-CVE-2015-8856","description":"Cross-site scripting (XSS) vulnerability in the serve-index package before 1.6.3 for Node.js allows remote attackers to inject arbitrary web script or HTML via a crafted file or directory name.","status":"published","published":"2017-01-23T21:59:00.563Z","modified":"2026-09-09T07:01:45.602811898Z","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"}],"updated_at":"2026-11-02T15:45:27.04239Z"},{"id":"GHSA-v633-x5vv-hqwc","title":"Cross-Site Scripting in serve-index","description":"Versions 1.6.2 and earlier of `serve-index` are affected by a cross-site scripting vulnerability. Because file and directory names are not escaped in the module's HTML output, a remote attacker that can influence file or directory names can launch a persistent cross-site scripting attack on the application.\n\n\n## Recommendation\n\nUpdate to version 1.6.3 or later.","status":"published","published":"2017-10-24T18:33:36Z","modified":"2023-11-08T03:58:03.501904Z","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:56.639206Z"},{"id":"UBUNTU-CVE-2015-8856","description":"Cross-site scripting (XSS) vulnerability in the serve-index package before 1.6.3 for Node.js allows remote attackers to inject arbitrary web script or HTML via a crafted file or directory name.","status":"published","published":"2017-01-23T21:59:00Z","modified":"2025-10-24T04:45:31Z","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"}],"updated_at":"2026-11-02T15:54:11.100633Z"}]}}
