{"id":"CVE-2019-5458","aliases":["EUVD-2019-0582","GHSA-7j93-2h6r-hm49"],"status":"published","title":"Cross-Site Scripting in http-file-server","description":"Cross-site scripting (XSS) vulnerability in http-file-server (all versions) allows an attacker with access to the server file system to execute arbitrary JavaScript code in victim's browser.","severity":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.00709,"percentile":0.53767,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-79"],"published":"2019-07-30T20:21:09Z","modified":"2026-06-17T02:37:43Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"http-file-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.2.6"}]}]},{"source":"osv","ecosystem":"npm","package":"http-file-server","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.2.6"}]}]}],"products":[{"vendor":"http-file-server","product":"http-file-server"},{"vendor":"http-file-server_project","product":"http-file-server"}],"references":[{"url":"https://hackerone.com/reports/570563","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-5458","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/1110","tags":["web"]},{"url":"https://github.com/advisories/GHSA-7j93-2h6r-hm49"}],"sources":{"cve":[{"id":"CVE-2019-5458","description":"Cross-site scripting (XSS) vulnerability in http-file-server (all versions) allows an attacker with access to the server file system to execute arbitrary JavaScript code in victim's browser.","status":"published","published":"2019-07-30T20:21:09Z","modified":"2024-08-04T19:54:53.487Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:20:18.085548Z"}],"euvd":[{"id":"EUVD-2019-0582","description":"Cross-site scripting (XSS) vulnerability in http-file-server (all versions) allows an attacker with access to the server file system to execute arbitrary JavaScript code in victim's browser.","status":"published","published":"2019-07-30T20:21:09Z","modified":"2024-08-04T19:54:53Z","updated_at":"2026-11-03T03:06:52.999682Z"}],"ghsa":[{"id":"GHSA-7j93-2h6r-hm49","title":"Cross-Site Scripting in http-file-server","description":"All versions of `http-file-server` are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize filenames, allowing attackers to execute arbitrary JavaScript in the victim's browser through files with names containing malicious code.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","status":"published","published":"2019-07-31T04:22:36Z","modified":"2023-02-01T09:19:42Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:39.76883Z"}],"nvd":[{"id":"CVE-2019-5458","description":"Cross-site scripting (XSS) vulnerability in http-file-server (all versions) allows an attacker with access to the server file system to execute arbitrary JavaScript code in victim's browser.","status":"published","published":"2019-07-30T21:15:12.177Z","modified":"2026-06-17T02:37:43.48Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":3.5,"vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","level":"low","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:05:21.892729Z"}],"osv":[{"id":"GHSA-7j93-2h6r-hm49","title":"Cross-Site Scripting in http-file-server","description":"All versions of `http-file-server` are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize filenames, allowing attackers to execute arbitrary JavaScript in the victim's browser through files with names containing malicious code.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","status":"published","published":"2019-07-31T04:22:36Z","modified":"2023-11-08T04:01:36.591395Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:41.002603Z"}]}}
