CVE-2025-9308 yarnpkg Yarn request-manager.js setOptions redos
A local attacker can cause a denial of service in Yarn via inefficient regular expression complexity in the request manager.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-9308?
CVE-2025-9308 is a medium-severity denial of service vulnerability in yarnpkg Yarn, published on 21 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2025-9308?
It affects 1 product.
Products include Yarnpkg Yarn.
How do I fix CVE-2025-9308?
Product is end of life, replace it.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2025-9308 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-9308 exists.
Other vulnerabilities in yarnpkg Yarn
Sources
Also known as DEBIAN-CVE-2025-9308, GHSA-pfv3-xh9q-f4rq, MINI-x9wf-vrp9-qqff, UBUNTU-CVE-2025-9308.