Vulnerability · Published Jan 25, 2023 · Assigned by snyk
CVE-2022-25847
Medium 5.4
In plain English
A medium-severity cross-site scripting in serve-lite. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities).
Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)0.6%top 51.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
All versions of the package serve-lite are vulnerable to Cross-site Scripting (XSS) because when it detects a request to a directory, it renders a file listing of all of its contents with links that include the actual file names without any sanitization or output encoding.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | serve-lite | no fix listed | GHSA-j8x7-qcw4-xx85 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | serve-lite | 0 – before * |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N