Live threats

All CVEs / Unjs

CVE-2025-54387Unjs Ipx

Medium 6.9 No auth needed

Priority
56
CVSS 4.0
6.9
EPSS
—
Auth required
No
Published
Aug 5, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ipx.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm ipx < 1.3.2 1.3.2 npm install ipx@1.3.2
npm ipx ≥ 2.0.0-0 < 2.1.1 2.1.1 npm install ipx@2.1.1
npm ipx ≥ 3.0.0 < 3.1.1 3.1.1 npm install ipx@3.1.1

Per OSV / GitHub Advisories (GHSA-mm3p-j368-7jcr). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
unjsipx< 1.3.2
unjsipx≥ 2.0.0 < 2.1.1
unjsipx≥ 3.0.0 < 3.1.1

Official sources

References

Links published by the sources. Open them with care.