{"id":"GHSA-7j93-2h6r-hm49","summary":"Cross-Site Scripting in http-file-server","details":"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.","aliases":["CVE-2019-5458"],"modified":"2023-11-08T04:01:36.591395Z","published":"2019-07-31T04:22:36Z","database_specific":{"cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2019-07-31T03:41:20Z","nvd_published_at":"2019-07-30T21:15:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-5458"},{"type":"WEB","url":"https://hackerone.com/reports/570563"},{"type":"WEB","url":"https://www.npmjs.com/advisories/1110"}],"affected":[{"package":{"name":"http-file-server","ecosystem":"npm","purl":"pkg:npm/http-file-server"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.2.6"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/07/GHSA-7j93-2h6r-hm49/GHSA-7j93-2h6r-hm49.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}