Inefficient Regular Expression Complexity Affecting nodejs20-npm package, versions <1:10.8.2-1.20.18.1.1.amzn2023.0.1


Severity

Recommended
0.0
medium
0
10

Based on Amazon Linux security rating.

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-AMZN2023-NODEJS20NPM-8611376
  • published10 Jan 2025
  • disclosed8 Nov 2024

Introduced: 8 Nov 2024

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

How to fix?

Upgrade Amazon-Linux:2023 nodejs20-npm to version 1:10.8.2-1.20.18.1.1.amzn2023.0.1 or higher.
This issue was patched in ALAS2023-2025-795.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nodejs20-npm package and not the nodejs20-npm package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 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