{"id":"GHSA-xw79-hhv6-578c","aliases":["GHSA-xw79-hhv6-578c"],"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 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.","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 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.","format":"markdown","source":"ghsa"}],"published":"2020-09-11T21:16:59.000Z","modified":"2021-09-28T16:54:33.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"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://github.com/zeit/serve-handler/commit/65b4d4183a31a8076c78c40118acb0ca1b64f620","tags":["web"],"sources":["ghsa"]},{"url":"https://hackerone.com/reports/358641","tags":["web"],"sources":["ghsa"]},{"url":"https://hackerone.com/reports/398285","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/zeit/serve-handler","tags":["package"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/971","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xw79-hhv6-578c","url":"https://github.com/advisories/GHSA-xw79-hhv6-578c","licence":"CC-BY-4.0","modified":"2021-09-28T16:54:33.000Z"}],"updatedAt":"2026-11-25T22:56:47.105Z"}