
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-25847 affects serve-lite package versions before 1.1.2. The vulnerability was discovered by Liran Tal and disclosed on November 28, 2022. This Cross-site Scripting (XSS) vulnerability affects the package's directory listing functionality (Snyk).
The vulnerability exists because when serve-lite detects a request to a directory, it renders a file listing of all its contents with links that include the actual file names without any sanitization or output encoding. The issue is specifically in the server.js file where file names are directly written to the response without proper sanitization (GitHub Gist). The vulnerability has been assigned a CVSS score of 5.4 (medium) by Snyk (Snyk).
If exploited, this XSS vulnerability could allow attackers to execute malicious JavaScript code in users' browsers when they view directory listings. However, the impact is considered limited due to the package having virtually zero downloads at the time of discovery (GitHub Gist).
The vulnerability has been fixed in serve-lite version 1.1.2. Users should upgrade to this version or higher to mitigate the risk. The fix was implemented in commit f7a0062 of the serve-lite repository (GitHub Gist).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."