{"id":"GHSA-cpgr-wmr9-qxv4","aliases":["GHSA-cpgr-wmr9-qxv4"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting in serve","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2020-09-11T21:20:14.000Z","modified":"2020-08-31T18:43:20.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"10.0.2"}],"ecosystem":"npm","package":"serve","purl":"pkg:npm/serve","source":"ghsa"}],"references":[{"url":"https://hackerone.com/reports/398285","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/992","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cpgr-wmr9-qxv4","url":"https://github.com/advisories/GHSA-cpgr-wmr9-qxv4","licence":"CC-BY-4.0","modified":"2020-08-31T18:43:20.000Z"}],"updatedAt":"2026-11-25T22:56:45.124Z"}