Vulnerabilities

CVE-2025-54387

Critical 9.8 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2025-08-05
Last modified
2026-06-17
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.7 % higher than 48 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
ipx (npm) < 1.3.2 Affected
ipx (npm) ≥ 2.0.0-0, < 2.1.1 Affected
ipx (npm) ≥ 3.0.0, < 3.1.1 Affected
Unjs Ipx < 1.3.2 Affected
Unjs Ipx ≥ 2.0.0, < 2.1.1 Affected
Unjs Ipx ≥ 3.0.0, < 3.1.1 Affected

Weakness type

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities