Inefficient Regular Expression Complexity in Yarn by yarnpkg
CVE-2025-9308
4.8MEDIUM
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