{"id":"GHSA-cpgr-wmr9-qxv4","summary":"Cross-Site Scripting in serve","details":"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.","modified":"2020-08-31T18:43:20Z","published":"2020-09-11T21:20:14Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2020-08-31T18:43:20Z","nvd_published_at":null,"cwe_ids":["CWE-79"]},"references":[{"type":"WEB","url":"https://hackerone.com/reports/398285"},{"type":"WEB","url":"https://www.npmjs.com/advisories/992"}],"affected":[{"package":{"name":"serve","ecosystem":"npm","purl":"pkg:npm/serve"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"10.0.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-cpgr-wmr9-qxv4/GHSA-cpgr-wmr9-qxv4.json"}}],"schema_version":"1.9.0"}