path-sanitizer allows bypassing the existing filters to achieve path-traversal vulnerability
Priority HIGH 81CWE-22Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00743 54th percentileScored 2026-11-07
Fix Fixed path-sanitizer (cabraviva): 3.1.0path-sanitizer (npm): 3.1.0
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| cabraviva | path-sanitizer | before 3.1.0 | 3.1.0 | Patch available | CNA |
| — | path-sanitizer (npm) | before 3.1.0 | 3.1.0 | Patch available | GHSA-94p5-r7cc-3rpr |
- path-sanitizer Vendorcabraviva Affected before 3.1.0 Fixed in 3.1.0 Patch available CNA
- path-sanitizer (npm) Vendor— Affected before 3.1.0 Fixed in 3.1.0 Patch available GHSA-94p5-r7cc-3rpr
Remediation
- Fix · CNA path-sanitizer (cabraviva) Fixed in 3.1.0
- Fix · GHSA-94p5-r7cc-3rpr path-sanitizer (npm) Fixed in 3.1.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-56198
- 2026-10-03 Alias added: GHSA-94p5-r7cc-3rpr
References
Other 4
- https://github.com/cabraviva/path-sanitizer/security/advisories/GHSA-94p5-r7cc-3rpr
- https://github.com/cabraviva/path-sanitizer/commit/b6d2319eac910dffdfacc8460f5b5cc5a1518ead
- https://www.loom.com/share/b766ece5193842848ce7562fcd559256?sid=fd826eb6-0eee-4601-bf0e-9cfee5c56e9d
- https://github.com/cabraviva/path-sanitizer
Sources
- CVE-2024-56198 · CVE Program
- CVE-2024-56198 · NVD
- FIRST EPSS
- GHSA-94p5-r7cc-3rpr · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences