Skip to content

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

CriticalCVSS 9.3 EPSS 0.74%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: total

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
npm path-sanitizer(npm) < 3.1.0 3.1.0 Fixed
cabraviva path-sanitizer = < 3.1.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm path-sanitizer(npm) < 3.1.0 3.1.0
cabraviva path-sanitizer = < 3.1.0 No fix listed

References