---
title: "CVE-2024-56198: path-sanitizer allows bypassing the existing filters to achieve path-traversal vulnerability"
url: https://erroneo.us/security/cve/CVE-2024-56198/
description: "CVE-2024-56198 (path-sanitizer (npm)): path-sanitizer is a simple lightweight npm package for sanitizing paths to prevent Path Traversal. Prior to 3.1.0…"
type: vulnerability-record
section: "Security Digest"
date_published: 2024-12-31
date_modified: 2025-01-02
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-56198"
kev: false
cvss: 9.3
epss: 0.00743
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.7% , percentile 54: FIRST’s model estimates a 0.7% chance of exploitation activity in the next 30 days, higher than 54% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes path-sanitizer (npm) < 3.1.0, fixed in 3.1.0 . Check your lockfile, including transitive dependencies.

## What it is

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

- npm `path-sanitizer` < 3.1.0 → fixed: 3.1.0

## Affected products (CVE record)

- cabraviva path-sanitizer: < 3.1.0

## Severity

- GitHub_M CVSS 4.0: 9.3 `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`
- GitHub CVSS 4.0: 9.3 `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`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.74% probability of exploitation activity in the next 30 days; percentile 54.

## Sources

- [GitHub Advisory GHSA-94p5-r7cc-3rpr](https://github.com/advisories/GHSA-94p5-r7cc-3rpr)
- [CVE.org record CVE-2024-56198](https://www.cve.org/CVERecord?id=CVE-2024-56198)
- [NVD entry CVE-2024-56198](https://nvd.nist.gov/vuln/detail/CVE-2024-56198)
- [github.com](https://github.com/cabraviva/path-sanitizer/security/advisories/GHSA-94p5-r7cc-3rpr)
- [github.com](https://github.com/cabraviva/path-sanitizer/commit/b6d2319eac910dffdfacc8460f5b5cc5a1518ead)
- [loom.com](https://www.loom.com/share/b766ece5193842848ce7562fcd559256?sid=fd826eb6-0eee-4601-bf0e-9cfee5c56e9d)

---
Source page: https://erroneo.us/security/cve/CVE-2024-56198/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
