CVE-2025-71319
Description
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.
Severity
HIGH
CVSS v3
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H · source cna
CVSS v4
8.7
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N · source cna
Exploit chance (EPSS)
0.729%
chance of exploitation in the next 30 days
higher than 54.8% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-835: Loop with Unreachable Exit Condition
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-06-10 |
Timeline
- 2025-04-02GitHub advisory published (GHSA-m5qc-5hw7-8vg7)433 days before publication
- 2026-06-09Published by the CNA19:57 UTC
- 2026-06-10CISA SSVC decision recorded1 day after publication
Exploit and advisory records
GitHub advisory GHSA-m5qc-5hw7-8vg7, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm image-size | from 1.1.0 before 1.2.1 | 1.2.1 |
| npm image-size | from 2.0.0 before 2.0.2 | 2.0.2 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| image-size image-size | from 1.1.0 through 1.2.1no fix listedfrom 2.0.0 through 2.0.2no fix listed | not listednot listed |
| redhat discovery | 2.0no fix listed | not listed |
| redhat enterprise_linux | 8.0no fix listed | not listed |
| redhat gatekeeper | 3.0no fix listed | not listed |
| redhat trusted_artifact_signer | from 1.4 before 1.4.2fixed in 1.4.2 | 1.4.2 |
References
- https://web.archive.org/web/20260224152152/https://github.com/image-size/image-size/pull/439
- https://joshua.hu/image-size-infinite-loop-dos-vulnerabilities
- https://access.redhat.com/errata/RHSA-2026:33313
- https://access.redhat.com/errata/RHSA-2026:37272
- https://access.redhat.com/security/cve/CVE-2025-71319
- https://bugzilla.redhat.com/show_bug.cgi?id=2487296
- https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-71319.json
- https://www.vulncheck.com/advisories/image-size-denial-of-service-via-infinite-loop-in-jxl-heif-parser
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2025-71319'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2025-71319'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2025-71319'curl 'https://api.contrastcyber.com/cve_products/CVE-2025-71319'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).