{"id":"CVE-2024-56198","published":"2024-12-31T15:18:12Z","modified":"2024-12-31T15:50:50Z","title":"path-sanitizer allows bypassing the existing filters to achieve path-traversal vulnerability","vendor":"cabraviva","product":"path-sanitizer","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01005,"percentile":0.61929,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/cabraviva/path-sanitizer/security/advisories/GHSA-94p5-r7cc-3rpr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/cabraviva/path-sanitizer/commit/b6d2319eac910dffdfacc8460f5b5cc5a1518ead","tags":["x_refsource_MISC"]},{"url":"https://www.loom.com/share/b766ece5193842848ce7562fcd559256?sid=fd826eb6-0eee-4601-bf0e-9cfee5c56e9d","tags":["x_refsource_MISC"]}],"priority":{"score":18.9,"factors":[{"name":"EPSS percentile","points":12.39},{"name":"CVSS severity","points":6.51}]},"vendorSlug":"cabraviva","affectedVersions":[{"vendor":"cabraviva","product":"path-sanitizer","versions":["< 3.1.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-12-31T15:50:41.034489Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"path-sanitizer","vulnerableRanges":["<3.1.0"],"patched":["3.1.0"],"from":["GHSA-94p5-r7cc-3rpr"],"provenance":"source"}],"summary":{"text":"The path-sanitizer npm package, a lightweight library for sanitizing paths against path traversal, contains a flaw in its filtering logic that allows the existing filters to be bypassed, resulting in path traversal. An attacker with network access and no privileges or user interaction can supply the crafted sequence \".=%5c\" to escape the intended directory and reach restricted paths, with high impact to confidentiality, integrity and availability of the affected system.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:26Z"},"euvd":{"id":"EUVD-2025-0018","exploited":false,"provenance":"source"}}