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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-22"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54387.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:unjs:ipx:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.3.2"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:unjs:ipx:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.1.1"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:unjs:ipx:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.1.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "81693ddbfc062cc922e4e2406e8427ab4e3ad214"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v1.3.2",
"range": [
{
"fixed": "2785c3dfabc6fd4e3918c54fd88c93c6c1efbf88"
}
],
"source": "REFERENCES_TAG"
},
{
"original_tag": "v2.1.1",
"range": [
{
"fixed": "36537bc1395854a57a34ab6aeecb5debfcb02ae1"
}
],
"source": "REFERENCES_TAG"
},
{
"original_tag": "v3.1.1",
"range": [
{
"fixed": "562ea7e44ebde1200d056f7f2ff900b36d5ec3c7"
}
],
"source": "REFERENCES_TAG"
}
]
}