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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm path-sanitizer(npm) | < 3.1.0 | 3.1.0 | Fixed |
| cabraviva path-sanitizer | = < 3.1.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm path-sanitizer(npm) | < 3.1.0 | 3.1.0 |
| cabraviva path-sanitizer | = < 3.1.0 | No fix listed |
References
- https://github.com/cabraviva/path-sanitizer/security/advisories/GHSA-94p5-r7cc-3rpr vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/cabraviva/path-sanitizer/commit/b6d2319eac910dffdfacc8460f5b5cc5a1518ead patch
- https://www.loom.com/share/b766ece5193842848ce7562fcd559256?sid=fd826eb6-0eee-4601-bf0e-9cfee5c56e9d
- github.com
- github.com product