CVE-2025-71319 Details
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.
A denial-of-service vulnerability has been identified in the image-size package, specifically in versions 1.1.0 prior to 1.2.1 and 2.0.0 prior to 2.0.2. The issue arises in the findBox function, which processes certain image formats, including JXL, HEIF, and JP2. When these images contain zero-sized boxes, the function enters an infinite loop, causing the application to hang. This vulnerability can be exploited by remote attackers who supply malicious image files with zero-sized boxes, triggering the loop during image validation.
Users can upgrade to image-size version 1.2.1 or 2.0.2 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 10, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2026:33313 | redhat-SADP | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2026:37272 | redhat-SADP | Third Party Advisory |
| https://access.redhat.com/security/cve/CVE-2025-71319 | redhat-SADP | Third Party Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2487296 | redhat-SADP | Issue TrackingThird Party Advisory |
| https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-71319.json | redhat-SADP | Third Party Advisory |
| https://joshua.hu/image-size-infinite-loop-dos-vulnerabilities | [email protected] | ExploitThird Party Advisory |
| https://web.archive.org/web/20260224152152/https://github.com/image-size/image-size/pull/439 | [email protected] | Issue TrackingPatch |
| https://www.vulncheck.com/advisories/image-size-denial-of-service-via-infinite-loop-in-jxl-heif-parser | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-835 | Loop with Unreachable Exit Condition ('Infinite Loop') | redhat-SADP |
| CWE-835 | Loop with Unreachable Exit Condition ('Infinite Loop') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| image-size image-size | >= 1.1.0, <= 1.2.1 >= 2.0.0, <= 2.0.2 |
CPE
Remediation
| |
| redhat discovery | 2.0 |
CPE
Remediation
| |
| redhat gatekeeper | 3.0 |
CPE
Remediation
| |
| redhat trusted artifact signer | >= 1.4, < 1.4.2 |
CPE
Remediation
| |
| redhat enterprise linux | 8.0 |
CPE
Remediation
| |
Change History
15 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | Modified Analysis | [email protected] |
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jul 21, 2026 | CVE Modified | redhat-SADP |
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jul 13, 2026 | CVE Modified | redhat-SADP |
| Jul 10, 2026 | CVE Modified | redhat-SADP |
| Jul 3, 2026 | CVE Modified | redhat-SADP |
| Jul 2, 2026 | CVE Modified | redhat-SADP |
| Jul 1, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 15, 2026 | Initial Analysis | [email protected] |
| Jun 10, 2026 | CVE Modified | [email protected] |
| Jun 9, 2026 | New CVE Received | [email protected] |