CVE-2025-71319
image-size 2.0.2 Denial of Service via Infinite Loop in JXL/HEIF Parser
- State
- Published
- Severity
- 8.7 High
- Published
- Jun 9, 2026
- Updated
- Sep 3, 2026
- Reserved
- Jun 8, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 8.7 High | 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 | VulnCheck |
| 3.1 | 7.5 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | VulnCheck |
| 3.1 | 7.5 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | redhat-SADP |
Weaknesses
- CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')
Affected Products
| Product | Versions |
|---|---|
image-sizeimage-size |
|
References
- https://joshua.hu/image-size-infinite-loop-dos-vulnerabilitiestechnical-descriptionexploit
- https://web.archive.org/web/20260224152152/https://github.com/image-size/image-size/pull/439issue-tracking
- https://www.vulncheck.com/advisories/image-size-denial-of-service-via-infinite-loop-in-jxl-heif-parserthird-party-advisory
- https://access.redhat.com/security/cve/CVE-2025-71319vdb-entry
- RHBZ#2487296issue-tracking
- https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-71319.json
- https://access.redhat.com/errata/RHSA-2026:33313vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:37272vendor-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.