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

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
  • github.com/image-size/image-size/commit/8994131c7c3ee8da1699e04700c95e0e683a0c68
  • github.com/image-size/image-size/security/advisories/GHSA-m5qc-5hw7-8vg7

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. Learn more about Dependency Scanning →

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

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 Tue, 13 May 2025 00:15:02 +0000.