CVE-2024-56198 — Vulnerability in path-sanitizer — CVE Details
path-sanitizer allows bypassing the existing filters to achieve path-traversal vulnerability
Summary
Advisory Timeline
- First published January 2, 2025 (648 days ago).
- Last revised January 2, 2025 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install path-sanitizer@3.1.0
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: npm (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| path-sanitizer | npm | All versions | 3.1.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-22Path TraversalMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
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
References
- https://github.com/cabraviva/path-sanitizer/security/advisories/GHSA-94p5-r7cc-3rprWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-56198ADVISORY
- https://github.com/cabraviva/path-sanitizer/commit/b6d2319eac910dffdfacc8460f5b5cc5a1518eadWEB
- https://github.com/cabraviva/path-sanitizerPACKAGE
- https://www.loom.com/share/b766ece5193842848ce7562fcd559256?sid=fd826eb6-0eee-4601-bf0e-9cfee5c56e9dWEB
Frequently Asked Questions
- What is CVE-2024-56198?
- path-sanitizer allows bypassing the existing filters to achieve path-traversal vulnerability This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2024-56198?
- CVE-2024-56198 affects path-sanitizer. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-56198 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2026-107722CRITICAL
fast-jwt: Incomplete patch of CVE-2026-34950: Non-whitespace key-prefix re-enables RSA→HS256 algorithm confusion
- CVE-2026-108261CRITICAL
TinaCMS admin preview iframe loads an attacker-controlled origin from the URL fragment
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies