CVE-2024-21538 Affecting node-gyp package, versions <10.3.1-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CHAINGUARDLATEST-NODEGYP-8456172
  • published4 Dec 2024
  • disclosed8 Nov 2024

Introduced: 8 Nov 2024

CVE-2024-21538  (opens in a new tab)

How to fix?

Upgrade Chainguard node-gyp to version 10.3.1-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-gyp package and not the node-gyp package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

Versions of the package cross-spawn before 7.0.5 are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper input sanitization. An attacker can increase the CPU usage and crash the program by crafting a very large and well crafted string.

CVSS Scores

version 3.1