{"id":"GHSA-cpgr-wmr9-qxv4","aliases":[],"status":"published","title":"Cross-Site Scripting in serve","description":"Versions of `serve` prior to 10.0.2 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\nUpgrade to version 10.0.2 or later.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2020-09-11T21:20:14Z","modified":"2023-01-09T05:03:49Z","fixes":[{"ecosystem":"npm","package":"serve","fixed_in":["10.0.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"serve","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.0.2"}]}]},{"source":"osv","ecosystem":"npm","package":"serve","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"10.0.2"}]}]}],"references":[{"url":"https://hackerone.com/reports/398285","tags":["web"]},{"url":"https://www.npmjs.com/advisories/992","tags":["web"]},{"url":"https://github.com/advisories/GHSA-cpgr-wmr9-qxv4"}],"sources":{"ghsa":[{"id":"GHSA-cpgr-wmr9-qxv4","title":"Cross-Site Scripting in serve","description":"Versions of `serve` prior to 10.0.2 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\nUpgrade to version 10.0.2 or later.","status":"published","published":"2020-09-11T21:20:14Z","modified":"2023-01-09T05:03:49Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:06.884904Z"}],"osv":[{"id":"GHSA-cpgr-wmr9-qxv4","title":"Cross-Site Scripting in serve","description":"Versions of `serve` prior to 10.0.2 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\nUpgrade to version 10.0.2 or later.","status":"published","published":"2020-09-11T21:20:14Z","modified":"2020-08-31T18:43:20Z","cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:45.28161Z"}]}}
