{"id":"GHSA-xw79-hhv6-578c","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 does not encode output, allowing attackers to execute arbitrary JavaScript in the victim's browser if user-supplied input is rendered.\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:16:59Z","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/358641","tags":["web"]},{"url":"https://www.npmjs.com/advisories/971","tags":["web"]},{"url":"https://github.com/zeit/serve-handler/commit/65b4d4183a31a8076c78c40118acb0ca1b64f620","tags":["web"]},{"url":"https://hackerone.com/reports/398285","tags":["web"]},{"url":"https://github.com/advisories/GHSA-xw79-hhv6-578c"},{"url":"https://github.com/zeit/serve-handler","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-xw79-hhv6-578c","title":"Cross-Site Scripting in serve","description":"Versions of `serve` prior to 10.0.2 are vulnerable to Cross-Site Scripting (XSS). The package does not encode output, allowing attackers to execute arbitrary JavaScript in the victim's browser if user-supplied input is rendered.\n\n\n## Recommendation\n\nUpgrade to version 10.0.2 or later.","status":"published","published":"2020-09-11T21:16:59Z","modified":"2023-01-09T05:03:49Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:06.884904Z"}],"osv":[{"id":"GHSA-xw79-hhv6-578c","title":"Cross-Site Scripting in serve","description":"Versions of `serve` prior to 10.0.2 are vulnerable to Cross-Site Scripting (XSS). The package does not encode output, allowing attackers to execute arbitrary JavaScript in the victim's browser if user-supplied input is rendered.\n\n\n## Recommendation\n\nUpgrade to version 10.0.2 or later.","status":"published","published":"2020-09-11T21:16:59Z","modified":"2021-09-28T16:54:33Z","cwes":["CWE-79"],"updated_at":"2026-11-02T15:47:00.604718Z"}]}}
