CVE-2025-71319
HIGH 8.7CVSS 4.0image-size Denial of Service via Infinite Loop during Image Processing
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.
- Published
- 9 Jun 2026
- Last modified
- 24 Jul 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Analyzed
- Weakness
- CWE-770CWE-835
- Also known as
- GHSA-m5qc-5hw7-8vg7
- Sources
- NVDJSONOSV GHSA-m5qc-5hw7-8vg7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | image-size | image-sizecpe:2.3:a:image-size:image-size:*:*:*:*:*:node.js:*:* |
>= 1.1.0, <= 1.2.1 | |
| NVD | image-size | image-sizecpe:2.3:a:image-size:image-size:*:*:*:*:*:node.js:*:* |
>= 2.0.0, <= 2.0.2 | |
| NVD | redhat | discoverycpe:2.3:a:redhat:discovery:2.0:*:*:*:*:*:*:* |
= 2.0 | |
| NVD | redhat | gatekeepercpe:2.3:a:redhat:gatekeeper:3.0:*:*:*:*:*:*:* |
= 3.0 | |
| NVD | redhat | trusted_artifact_signercpe:2.3:a:redhat:trusted_artifact_signer:*:*:*:*:*:*:*:* |
>= 1.4, < 1.4.2 | 1.4.2 |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| OSV | npm | image-size | >= 1.1.0, < 1.2.1 | 1.2.1 |
| OSV | npm | image-size | >= 2.0.0, < 2.0.2 | 2.0.2 |
References
- https://joshua.hu/image-size-infinite-loop-dos-vulnerabilities · Exploit, Third Party Advisory, WEB
- https://web.archive.org/web/20260224152152/https://github.com/image-size/image-size/pull/439 · Issue Tracking, Patch, WEB
- https://www.vulncheck.com/advisories/image-size-denial-of-service-via-infinite-loop-in-jxl-heif-parser · Third Party Advisory, WEB
- https://access.redhat.com/errata/RHSA-2026:33313 · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:37272 · Third Party Advisory
- https://access.redhat.com/security/cve/CVE-2025-71319 · Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2487296 · Issue Tracking, Third Party Advisory
- https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-71319.json · Third Party Advisory
- https://github.com/image-size/image-size/security/advisories/GHSA-m5qc-5hw7-8vg7 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-71319 · ADVISORY
- https://github.com/image-size/image-size/commit/8994131c7c3ee8da1699e04700c95e0e683a0c68 · WEB
- https://github.com/image-size/image-size · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 9 Jun 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 2 Apr 2025)