p PatchFirst

CVE-2025-9308

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

CVSS 4.8 · Medium · EPSS 0.2% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="node-yarnpkg"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Stack: system

Affected products and versions

  • yarn

    Versions
    • 1.22.0: Affected
    • 1.22.1: Affected
    • 1.22.2: Affected
    • 1.22.3: Affected
    • 1.22.4: Affected
    • 1.22.5: Affected
    All versions (23)
    • 1.22.6: Affected
    • 1.22.7: Affected
    • 1.22.8: Affected
    • 1.22.9: Affected
    • 1.22.10: Affected
    • 1.22.11: Affected
    • 1.22.12: Affected
    • 1.22.13: Affected
    • 1.22.14: Affected
    • 1.22.15: Affected
    • 1.22.16: Affected
    • 1.22.17: Affected
    • 1.22.18: Affected
    • 1.22.19: Affected
    • 1.22.20: Affected
    • 1.22.21: Affected
    • 1.22.22: Affected

    No fix published

  • node-yarnpkg Debian 12

    Versions
    • 1.22.19+~cs24.27.18-2
    • 1.22.19+~cs24.27.18-2+deb12u1
    • 1.22.19+~cs24.27.18-3
    • 1.22.19+~cs24.27.18-4
    • 4.0.0-rc.53+dfsg-1
    • 4.0.1+dfsg-1
    All versions (18)
    • 4.0.1+dfsg-2
    • 4.0.2+dfsg-1
    • 4.0.2+dfsg-2
    • 4.0.2+dfsg-3
    • 4.1.0+dfsg-1
    • 4.1.0+dfsg-3
    • 4.1.0+dfsg-4
    • 4.1.0+dfsg-5
    • 4.1.0+dfsg-6
    • 4.1.0+dfsg-7
    • 4.1.0+dfsg-8
    • 4.1.0+dfsg-9
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-yarnpkg Debian 13

    Affected ranges
    • ECOSYSTEM: < 4.0.2+dfsg-2

    Update to 4.0.2+dfsg-2

  • node-yarnpkg Debian 14

    Affected ranges
    • ECOSYSTEM: < 4.0.2+dfsg-2

    Update to 4.0.2+dfsg-2

  • node-yarnpkg Ubuntu 20.04 LTS

    Versions
    • 1.13.0-1build1
    • 1.13.0-3
    • 1.19.1-1
    • 1.22.4-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-yarnpkg Ubuntu 22.04 LTS

    Versions
    • 1.22.10+~cs22.25.14-3
    • 1.22.10+~cs22.25.14-4
    • 1.22.10+~cs22.25.14-5
    • 1.22.10+~cs22.25.14-8
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-yarnpkg Ubuntu 24.04 LTS

    Versions
    • 1.22.19+~cs24.27.18-2
    • 1.22.19+~cs24.27.18-4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-yarnpkg Ubuntu 25.10

    Versions
    • 4.0.2+dfsg-3
    • 4.1.0+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-yarnpkg Ubuntu 26.10

    Versions
    • 4.1.0+dfsg-1
    • 4.1.0+dfsg-6ubuntu2
    • 4.1.0+dfsg-7ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-yarnpkg Ubuntu 26.04 LTS

    Versions
    • 4.1.0+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →