Image disclosure via raw path prefix comparison
Published Aug 5, 2025 · Updated Aug 5, 2025
Path traversal in UnJS IPX 1.3.1 and earlier, 2.0.0-0 through 2.1.0, and 3.0.0 through 3.1.0 allows remote attackers to read image files. The node-fs storage handler joins the requested image ID to each allowed directory, then accepts the resolved path when its raw string merely starts with the directory string. Exploitation requires filesystem storage whose allowed directory lacks a trailing separator and a readable image in a sibling path sharing that prefix.
Summary
What happened
Path traversal in UnJS IPX 1.3.1 and earlier, 2.0.0-0 through 2.1.0, and 3.0.0 through 3.1.0 allows remote attackers to read image files. The node-fs storage handler joins the requested image ID to each allowed directory, then accepts the resolved path when its raw string merely starts with the directory string. Exploitation requires filesystem storage whose allowed directory lacks a trailing separator and a readable image in a sibling path sharing that prefix.
The record
- CVE
- CVE-2025-54387
- Published
- Aug 5, 2025
- Updated
- Aug 5, 2025
- Vendor
- UnJS
- Product
- IPX
- Classifications
- CWE-22, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 5, 2025CVE publishedPublication date reported by the CVE source.
- Aug 5, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 1.3.2
- Affected versionversion=>= 2.0.0-0, < 2.1.1
- Affected versionversion=>= 3.0.0, < 3.1.1
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GitHub advisory sibling-directory proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo