Inefficient Regular Expression Complexity Affecting lerna package, versions <8.2.1-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.04% (12th 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 Learn

Learn about Inefficient Regular Expression Complexity vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CHAINGUARDLATEST-LERNA-9058176
  • published5 Mar 2025
  • disclosed14 Feb 2025

Introduced: 14 Feb 2025

NewCVE-2025-25290  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

Upgrade Chainguard lerna to version 8.2.1-r0 or higher.

NVD Description

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

@octokit/request sends parameterized requests to GitHub’s APIs with sensible defaults in browsers and Node. Starting in version 1.0.0 and prior to version 9.2.1, the regular expression /&lt;([^&gt;]+)&gt;; rel=&#34;deprecation&#34;/ used to match the link header in HTTP responses is vulnerable to a ReDoS (Regular Expression Denial of Service) attack. This vulnerability arises due to the unbounded nature of the regex's matching behavior, which can lead to catastrophic backtracking when processing specially crafted input. An attacker could exploit this flaw by sending a malicious link header, resulting in excessive CPU usage and potentially causing the server to become unresponsive, impacting service availability. Version 9.2.1 fixes the issue.