CVE-2025-9308
yarn: yarnpkg regular expression denial of service
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · August 22, 2025
Updated · July 29, 2026
Description
A regular expression denial of service flaw has been found in the yarn npm module. An attacker with local access can manipulate input to the function setOptions in such a way that the yarnpkg program becomes unresponsive.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
CVSS / CWE
CVSS 3.1 · 3.3CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
CWE-1333 · Inefficient Regular Expression Complexity