Skip to content
OpenAdvisories
Medium GHSA-cpgr-wmr9-qxv4

Cross-Site Scripting in serve

Published Sep 11, 2020 · Updated Aug 31, 2020 · Assigned by GHSA

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.

Affected packages

EcosystemPackageAffectedFixedRecord
npm serve < 10.0.2 10.0.2 GHSA-cpgr-wmr9-qxv4

References