CVE-2024-56198
Critical
Description
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.
SeverityCritical
CVSS9.3
Exploit probability—
ProductPath-sanitizer
PublishedDec 31, 2024
First seenDec 31, 2024
Weakness typeCWE-22Path traversal
How to fix
Update
- path-sanitizer3.1.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| path-sanitizernpm | v < 3.1.0 | 3.1.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.