CVE-2025-54387

IPX is Vulnerable to Path Traversal via Prefix Matching Bypass

Published Aug 5, 2025 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-23570 IPX Allows Path Traversal via Prefix Matching Bypass
Github GHSA Github GHSA GHSA-mm3p-j368-7jcr IPX Allows Path Traversal via Prefix Matching Bypass
History
Type Values Removed Values Added
CPEs cpe:2.3:a:unjs:ipx:*:*:*:*:*:node.js:*:*
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Unjs
Unjs ipx
Vendors & Products Unjs
Unjs ipx
Type Values Removed Values Added
Description 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.
Title IPX is Vulnerable to Path Traversal via Prefix Matching Bypass
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 6.9, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 5, 2025, 2:11 PM
Reserved
Jul 21, 2025, 4:12 PM
Status
Analyzed
Published
Aug 5, 2025, 1:15 AM
Modified
Jun 17, 2026, 9:39 AM