CVE-2024-56198

CRITICAL

path-sanitizer < 3.1.0 - Path Traversal via .=%5c Bypass

Title source: llm
STIX 2.1

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.

Scores

CVSS v4 9.3
EPSS 0.0082
EPSS Percentile 74.5%
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

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact total

Details

CWE
CWE-22
Status published
Products (2)
cabraviva/path-sanitizer < 3.1.0
npm/path-sanitizer 0 - 3.1.0npm
Published Dec 31, 2024
Tracked Since Feb 18, 2026