CVE-2025-9308 yarnpkg Yarn request-manager.js setOptions redos

Medium 4.8 Published Updated

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.

Weakness: CWE-400, CWE-1333

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.

Sources

Also known as DEBIAN-CVE-2025-9308, GHSA-pfv3-xh9q-f4rq, MINI-x9wf-vrp9-qqff, UBUNTU-CVE-2025-9308.

Is CVE-2025-9308 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free