# CVE-2025-71319: image-size 2.0.2 Denial of Service via Infinite Loop in JXL/HEIF Parser

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 55% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-04-02T15:04:58.000Z
- Modified: 2026-11-08T14:00:22.491Z
- Also known as: GHSA-m5qc-5hw7-8vg7
- Weaknesses: CWE-770, CWE-835
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- image-size image-size: from 1.1.0 up to 1.2.1; from 2.0.0 up to 2.0.2
- discovery/discovery-ui-rhel9: no versions given (not affected: from 1782756541 before *)
- rhtas/rekor-search-ui-rhel9: no versions given (not affected: from 1783327185 before *)
- gatekeeper/gatekeeper-rhel9: no versions given
- rh-podman-desktop.git: no versions given
- subscription-manager: no versions given
- grafana: no versions given
- grafana-pcp: no versions given
- image-size: no versions given
- rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9: no versions given
- devspaces/code-rhel9: no versions given
- satellite/iop-vulnerability-frontend-rhel9: no versions given
- image-size (npm): from 1.1.0 before 1.2.1; from 2.0.0 before 2.0.2
- redhat discovery: 2.0
- redhat gatekeeper: 3.0
- redhat trusted_artifact_signer: from 1.4 before 1.4.2
- redhat enterprise_linux: 8.0

## Every score

- VulnCheck: CVSS: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: CVSS: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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 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`

## References

- <https://joshua.hu/image-size-infinite-loop-dos-vulnerabilities> (exploit, technical-description, 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/security/cve/CVE-2025-71319> (third-party-advisory, vdb-entry)
- <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://access.redhat.com/errata/RHSA-2026:33313> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:37272> (third-party-advisory, vendor-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)

## Sources

- CVE List: [CVE-2025-71319](https://www.cve.org/CVERecord?id=CVE-2025-71319), CVE Terms of Use, modified 2026-11-08
- GitHub Advisory Database: [GHSA-m5qc-5hw7-8vg7](https://github.com/advisories/GHSA-m5qc-5hw7-8vg7), CC-BY-4.0, modified 2026-06-10
- NVD: [CVE-2025-71319](https://nvd.nist.gov/vuln/detail/CVE-2025-71319), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2025-71319 · Whole record: https://cve.day/CVE-2025-71319.json · Rebuilt by cve.day 2026-11-25T22:59:12.279Z
