Vulnerability DatabaseGHSA-m5qc-5hw7-8vg7

GHSA-m5qc-5hw7-8vg7
JavaScript vulnerability analysis and mitigation

Overview

The image-size npm package is affected by a Denial of Service vulnerability (GHSA-m5qc-5hw7-8vg7) when processing specially crafted images. The vulnerability affects versions >= 1.1.0, < 1.2.1 and >= 2.0.0, < 2.0.2, with patched versions being 1.2.1 and 2.0.2. The issue was discovered and published on April 2, 2025 (GitHub Advisory).

Technical details

The vulnerability occurs due to an infinite loop in the findBox function when processing certain images with a box size of 0. The issue manifests when processing JXL, HEIF, and JP2 image formats. When the first bytes of the input don't match any bytes in firstBytes, the package attempts to validate the image using other handlers. The findBox function enters an infinite loop because when box.size is 0, the offset variable is not updated, causing the loop to continue indefinitely (GitHub Advisory).

Impact

The vulnerability results in a Denial of Service condition when processing specially crafted images. The CVSS score is 7.5 (High), with the following vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, indicating high impact on system availability (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in versions 1.2.1 and 2.0.2. The fix ensures that the offset always increases by modifying the findBox function to advance by at least 8 bytes (the size of the box header) when box.size is 0 (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-66479LOW1.8
  • JavaScriptJavaScript
  • @anthropic-ai/sandbox-runtime
NoYesDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management