# GHSA-xw79-hhv6-578c: Cross-Site Scripting in serve

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-11T21:16:59.000Z
- Modified: 2021-09-28T16:54:33.000Z
- Weaknesses: CWE-79

## 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.


## Recommendation

Upgrade to version 10.0.2 or later.

(As written by GitHub Advisory Database.)

## Affected

- serve (npm): before 10.0.2

## References

- <https://github.com/zeit/serve-handler/commit/65b4d4183a31a8076c78c40118acb0ca1b64f620> (web)
- <https://hackerone.com/reports/358641> (web)
- <https://hackerone.com/reports/398285> (web)
- <https://github.com/zeit/serve-handler> (package)
- <https://www.npmjs.com/advisories/971> (web)

## Sources

- GitHub Advisory Database: [GHSA-xw79-hhv6-578c](https://github.com/advisories/GHSA-xw79-hhv6-578c), CC-BY-4.0, modified 2021-09-28

---

Page: https://cve.day/GHSA-xw79-hhv6-578c · Whole record: https://cve.day/GHSA-xw79-hhv6-578c.json · Rebuilt by cve.day 2026-11-25T22:56:47.105Z
