# GHSA-cpgr-wmr9-qxv4: Cross-Site Scripting in serve

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-11T21:20:14.000Z
- Modified: 2020-08-31T18:43:20.000Z
- Weaknesses: CWE-79

## Description

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.


## Recommendation

Upgrade to version 10.0.2 or later.

(As written by GitHub Advisory Database.)

## Affected

- serve (npm): before 10.0.2

## References

- <https://hackerone.com/reports/398285> (web)
- <https://www.npmjs.com/advisories/992> (web)

## Sources

- GitHub Advisory Database: [GHSA-cpgr-wmr9-qxv4](https://github.com/advisories/GHSA-cpgr-wmr9-qxv4), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-cpgr-wmr9-qxv4 · Whole record: https://cve.day/GHSA-cpgr-wmr9-qxv4.json · Rebuilt by cve.day 2026-11-25T22:56:45.124Z
