Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. image-size
  4. ›
  5. GHSA-m5qc-5hw7-8vg7

GHSA-m5qc-5hw7-8vg7: image-size Denial of Service via Infinite Loop during Image Processing

April 2, 2025 (updated June 10, 2026)

image-size is vulnerable to a Denial of Service vulnerability when processing specially crafted images.

The issue occurs because of an infine loop in findBox when processing certain images with a box with size 0.

References

  • github.com/advisories/GHSA-m5qc-5hw7-8vg7
  • github.com/image-size/image-size/commit/8994131c7c3ee8da1699e04700c95e0e683a0c68
  • github.com/image-size/image-size/security/advisories/GHSA-m5qc-5hw7-8vg7
  • joshua.hu/image-size-infinite-loop-dos-vulnerabilities
  • nvd.nist.gov/vuln/detail/CVE-2025-71319
  • web.archive.org/web/20260224152152/https://github.com/image-size/image-size/pull/439
  • www.vulncheck.com/advisories/image-size-denial-of-service-via-infinite-loop-in-jxl-heif-parser

Code Behaviors & Features

Detect and mitigate GHSA-m5qc-5hw7-8vg7 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.1.0 before 1.2.1, all versions starting from 2.0.0 before 2.0.2

Fixed versions

  • 1.2.1
  • 2.0.2

Solution

Upgrade to versions 1.2.1, 2.0.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling
  • CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')

Source file

npm/image-size/GHSA-m5qc-5hw7-8vg7.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:01 +0000.