CVE-2025-54387

Source
https://cve.org/CVERecord?id=CVE-2025-54387
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-54387.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-54387
Aliases
Published
2025-08-05T00:10:26.442Z
Modified
2026-07-15T01:49:12.434188245Z
Severity
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:H/SI:L/SA:N CVSS Calculator
Summary
IPX is Vulnerable to Path Traversal via Prefix Matching Bypass
Details

IPX is an image optimizer powered by sharp and svgo. In versions 1.3.1 and below, 2.0.0-0 through 2.1.0, and 3.0.0 through 3.1.0, the approach used to check whether a path is within allowed directories is vulnerable to path prefix bypass when the allowed directories do not end with a path separator. This occurs because the check relies on a raw string prefix comparison. This is fixed in versions 1.3.2, 2.1.1 and 3.1.1.

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

Affected packages

Git / github.com/unjs/ipx

Affected ranges

Type
GIT
Repo
https://github.com/unjs/ipx
Events
Database specific
{
    "cpe": "cpe:2.3:a:unjs:ipx:*:*:*:*:*:node.js:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.3.2"
        },
        {
            "introduced": "2.0.0"
        },
        {
            "fixed": "2.1.1"
        },
        {
            "introduced": "3.0.0"
        },
        {
            "fixed": "3.1.1"
        }
    ],
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

ipx-client@0.*
ipx-client@0.5.0
ipx-client@0.5.1
ipx@0.*
ipx@0.3.0
ipx@0.3.1
v0.*
v0.1.0
v0.4.0
v0.4.1
v0.4.2
v0.4.3
v0.4.4
v0.4.5
v0.4.6
v0.4.7
v0.4.8
v0.5.0
v0.5.1
v0.5.2
v0.5.3
v0.5.4
v0.5.5
v0.5.6
v0.5.7
v0.5.8
v0.6.0
v0.6.1
v0.6.2
v0.6.3
v0.6.4
v0.6.5
v0.6.6
v0.6.7
v0.7.0
v0.7.1
v0.7.2
v0.8.0
v0.9.0
v0.9.1
v0.9.10
v0.9.11
v0.9.2
v0.9.3
v0.9.4
v0.9.5
v0.9.6
v0.9.7
v0.9.8
v0.9.9
v1.*
v1.0.0
v1.0.0-0
v1.0.0-1
v1.0.0-2
v1.0.1
v1.1.0
v1.2.0
v1.3.0
v1.3.1
v2.*
v2.0.0
v2.0.1
v2.0.2
v2.1.0
v3.*
v3.0.0
v3.0.1
v3.0.1-0
v3.0.2
v3.0.3
v3.1.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-54387.json"