CVE-2022-25847
MEDIUM 6.1CVSS 3.1Cross-site Scripting (XSS) in serve-lite
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.
- Published
- 26 Jan 2023
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-j8x7-qcw4-xx85
- Sources
- NVDJSONOSV GHSA-j8x7-qcw4-xx85JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | serve-lite_project | serve-litecpe:2.3:a:serve-lite_project:serve-lite:*:*:*:*:*:node.js:*:* |
all versions | |
| OSV | npm | serve-lite | <= 1.1.0 |
References
- https://gist.github.com/lirantal/52debd25284726fcc2eaed9c7512975c · Exploit, Third Party Advisory, WEB
- https://security.snyk.io/vuln/SNYK-JS-SERVELITE-3149915 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-25847 · ADVISORY
- https://github.com/beenotung/serve-lite · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 26 Jan 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Jan 2023)