Resource exhaustion in Yarnpkg Yarn
CVE-2025-9308
A vulnerability has been found in yarnpkg Yarn up to 1.22.22. This impacts the function setOptions of the file src/util/request-manager.js. Such manipulation leads to inefficient regular expression complexity. Local access is required to approach this attack. This vulnerability only affects products that are no longer supported by the maintainer.
Vulnerability class: DoS (Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 3.3 (Low). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS 0.002, 13.8th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Yarnpkg Yarn — versions 1.22.0, 1.22.1, 1.22.2
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- VDB-320913 | yarnpkg Yarn request-manager.js setOptions redos (technical-description, Third Party Advisory, VDB Entry, vdb-entry)
- VDB-320913 | CTI Indicators (IOB, IOC, TTP, IOA) (signature, Permissions Required, permissions-required, VDB Entry)
- Submit #633486 | yarn Yarn src/util/request-manager.js v1.22.22 Inefficient Regular Expression Complexity (Third Party Advisory, VDB Entry, third-party-advisory)
- github.com/yarnpkg/yarn/pull/9203 (issue-tracking, Exploit, Issue Tracking)