CVE-2024-56198

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-56198
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56198.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-56198
Aliases
Published
2024-12-31T15:18:12.330Z
Modified
2025-12-05T07:35:34.894216Z
Severity
  • 9.3 (Critical) CVSS_V4 - 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 CVSS Calculator
Summary
path-sanitizer allows bypassing the existing filters to achieve path-traversal vulnerability
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56198.json",
    "cwe_ids": [
        "CWE-22"
    ],
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/cabraviva/path-sanitizer

Affected ranges

Type
GIT
Repo
https://github.com/cabraviva/path-sanitizer
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed