{"id":"GHSA-xw79-hhv6-578c","summary":"Cross-Site Scripting in serve","details":"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.","modified":"2021-09-28T16:54:33Z","published":"2020-09-11T21:16:59Z","database_specific":{"github_reviewed_at":"2020-08-31T18:42:30Z","nvd_published_at":null,"cwe_ids":["CWE-79"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/zeit/serve-handler/commit/65b4d4183a31a8076c78c40118acb0ca1b64f620"},{"type":"WEB","url":"https://hackerone.com/reports/358641"},{"type":"WEB","url":"https://hackerone.com/reports/398285"},{"type":"PACKAGE","url":"https://github.com/zeit/serve-handler"},{"type":"WEB","url":"https://www.npmjs.com/advisories/971"}],"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-xw79-hhv6-578c/GHSA-xw79-hhv6-578c.json"}}],"schema_version":"1.9.0"}