Path Traversal in zero
Summary
GHSA-crf7-fvjx-863q: Path Traversal in zero. Affects zero versions < 1.0.6. Fixed in 1.0.6. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The zero package is an npm package that provides functionality for handling server files. It is used to fetch files from the server using URLs. However, versions prior to 1.0.6 are vulnerable to a Path Traversal vulnerability. This vulnerability arises due to insufficient input sanitization in URLs, allowing attackers to access server files by using relative paths when fetching files.
Vulnerability Detail
The Path Traversal vulnerability in zero allows attackers to bypass file access restrictions and retrieve sensitive server files. By manipulating the URL and using relative paths, an attacker can traverse the file system and access files that should not be accessible. This can lead to unauthorized disclosure of sensitive information or even remote code execution if the accessed files contain executable code. The vulnerability has a high severity rating (CWE-22) and can have significant security implications for applications using affected versions of the zero package.
How To Fix
Minimum fixed version
1.0.6
This is the first release that contains the fix.
npm install zero@1.0.6
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Conclusion
The zero package prior to version 1.0.6 is vulnerable to Path Traversal, which allows attackers to access sensitive server files. It is crucial to upgrade to the fixed version to mitigate the risk of unauthorized access and potential data breaches. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for zero →
FAQ
The vulnerability allows attackers to access sensitive server files, potentially leading to unauthorized disclosure of information or remote code execution.
Versions prior to 1.0.6 of the zero package are affected by this vulnerability.
You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your package-lock.json file and the playground will analyze it for vulnerabilities in real-time.
No specific workarounds are mentioned for this vulnerability. It is recommended to upgrade to the fixed version of the zero package.
You can find more information about this vulnerability in the GitHub Advisory Database at https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-crf7-fvjx-863q/GHSA-crf7-fvjx-863q.json