p PatchFirst

CVE-2021-4435

CVE-2021-4435 · Yarn: untrusted search path

CVSS 7.7 · High · EPSS 0.3% · 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.

An untrusted search path vulnerability was found in Yarn. When a victim runs certain Yarn commands in a directory with attacker-controlled content, malicious commands could be executed in unexpected ways.

Published
Updated

Stack: system · node

Affected products and versions

  • yarn

    Versions
    • 1.22.13: Not affected

    No fix published

  • fedora

    No fix published

  • extra packages for enterprise linux

    No fix published

  • node-yarnpkg Debian 12

    Affected ranges
    • ECOSYSTEM: < 1.22.19+~cs24.27.18-1

    Update to 1.22.19+~cs24.27.18-1

  • node-yarnpkg Debian 13

    Affected ranges
    • ECOSYSTEM: < 1.22.19+~cs24.27.18-1

    Update to 1.22.19+~cs24.27.18-1

  • node-yarnpkg Debian 14

    Affected ranges
    • ECOSYSTEM: < 1.22.19+~cs24.27.18-1

    Update to 1.22.19+~cs24.27.18-1

  • yarn npm

    Affected ranges
    • SEMVER: < 1.22.13

    Update to 1.22.13

  • 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 →