CVE-2019-10773
In Yarn before 1.21.1, the package install functionality can be abused to generate arbitrary symlinks on the host filesystem by using specially crafted "bin" keys. Existing files could be overwritten depending on the current user permission set.
What to do
Fixed builds are available from Debian, npm: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | node-yarnpkg | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | node-yarnpkg | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | node-yarnpkg | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | node-yarnpkg | Under investigation | UBUNTU-CVE-2019-10773 | |
| Ubuntu 20.04 | node-yarnpkg | Fix pending | UBUNTU-CVE-2019-10773 | |
| Debian 14 | node-yarnpkg | Fixed | 1.21.1-1 | DEBIAN-CVE-2019-10773 |
| Debian 13 | node-yarnpkg | Fixed | 1.21.1-1 | DEBIAN-CVE-2019-10773 |
| Debian 12 | node-yarnpkg | Fixed | 1.21.1-1 | DEBIAN-CVE-2019-10773 |
| npm library | yarn | Fixed | 1.22.0 | GHSA-5xf4-f2fq-f69j |
What the vendor says
As published in the CVE record by snyk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Yarn: affected: All versions prior to version 1.21.1
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2020:0475 (vendor-advisory)
References
- https://snyk.io/vuln/SNYK-JS-YARN-537806%2C
- https://github.com/yarnpkg/yarn/commit/039bafd74b7b1a88a53a54f8fa6fa872615e90e7
- https://github.com/yarnpkg/yarn/issues/7761#issuecomment-565493023
- https://blog.daniel-ruf.de/critical-design-flaw-npm-pnpm-yarn/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ITY5BC63CCC647DFNUQRQ5AJDKUKUNBI/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3HIZW4NZVV5QY5WWGW2JRP3FHYKZ6ZJ5/
- https://access.redhat.com/errata/RHSA-2020:0475
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.