Vulnerability · Published Dec 31, 2024 · Assigned by GitHub_M

CVE-2024-56198path-sanitizer allows bypassing the existing filters to achieve path-traversal vulnerability

Critical 9.3

In plain English

A critical-severity path traversal in path-sanitizer from cabraviva. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)9.3Critical
Exploit odds (30 days)0.7%top 45.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmpath-sanitizer3.1.0GHSA-94p5-r7cc-3rpr

Affected products (as reported)

VendorProductVersions
cabraviva path-sanitizer < 3.1.0

Weakness: CWE-22 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

References