Inefficient Regular Expression Complexity in Yarn by yarnpkg
CVE-2025-9308

4.8MEDIUM

Key Information:

Vendor

Yarnpkg

Status
Vendor
CVE Published:
21 August 2025

What is CVE-2025-9308?

A vulnerability exists in the Yarn package manager, specifically in the setOptions function located in src/util/request-manager.js. This flaw results in inefficient regular expression complexity, posing a risk that could be exploited by users with local access. It primarily affects versions of Yarn that are no longer maintained, making them more susceptible to potential manipulations.

Affected Version(s)

Yarn 1.22.0

Yarn 1.22.1

Yarn 1.22.2

References

CVSS V4

Score:
4.8
Severity:
MEDIUM
Confidentiality:
None
Integrity:
None
Availability:
Low
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

mmmsssttt (VulDB User)
.
CVE-2025-9308 : Inefficient Regular Expression Complexity in Yarn by yarnpkg