CVE-2025-71319 — image-size
Fix: image-size/image-size#439CVE-2025-71319 is a CWE-835 vulnerability in image-size. A fix is available for image-size — see the affected versions and patch details below.
image-size 2.0.2 Denial of Service via Infinite Loop in JXL/HEIF Parser
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
Exploitation and automatability from CISA’s SSVC triage for CVE-2025-71319.
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
image-sizenpmDescription
image-size through 2.0.2 contains a denial of service vulnerability that allows remote attackers to permanently block the Node.js event loop by supplying a specially crafted image buffer with a zero-valued size field in a recognized box-type. Attackers can trigger an infinite loop in the JXL or HEIF image parsers by providing a crafted image containing a box with a size of zero, causing the offset to never advance and permanently hanging the application.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | image-size | ≥ 1.1.0&&< 1.2.1 | 1.2.1npm install image-size@1.2.1 |
| 📦npm | image-size | ≥ 2.0.0&&< 2.0.2 | 2.0.2npm install image-size@2.0.2 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for image-size, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update image-size to 1.2.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2025-71319 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like CVE-2025-71319 can be triaged on real exposure rather than presence alone.
Tailored to CVE-2025-71319. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This is an Important denial of service vulnerability in the `image-size` component, which can be triggered remotely by processing specially crafted JXL, HEIF, or JP2 image files containing zero-sized boxes. This flaw can lead to an application hang due to an infinite loop in the `findBox` function, impacting the…
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Discovery 2 | discovery/discovery-ui-rhel9:1782756541 | RHSA-2026:33313 |
| Red Hat Trusted Artifact Signer 1.4 | rhtas/rekor-search-ui-rhel9:1783327185 | RHSA-2026:37272 |
Frequently Asked Questions
Is CVE-2025-71319 in your dependencies?
O3 Security finds CVE-2025-71319 across npm dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.