CVE-2024-56198
path-sanitizer is a simple lightweight npm package for sanitizing …
path-sanitizer is a simple lightweight npm package for sanitizing paths to prevent Path Traversal. Prior to 3.1.0, the filters can be bypassed using .=%5c which results in a path traversal. This vulnerability is fixed in 3.1.0.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/cabraviva/path-sanitizer/commit/b6d2319eac910dffdfacc8460f5b5cc5a1518ead
- github.com/cabraviva/path-sanitizer/security/advisories/GHSA-94p5-r7cc-3rpr
- www.loom.com/share/b766ece5193842848ce7562fcd559256?sid=fd826eb6-0eee-4601-bf0e-9cfee5c56e
- nvd.nist.gov/vuln/detail/CVE-2024-56198
- github.com/advisories/GHSA-94p5-r7cc-3rpr
- nvd.nist.gov/vuln/detail/CVE-2024-56198
- cve.org/CVERecord?id=CVE-2024-56198
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.