GitHub Advisoryadvisory · npm
GHSA-5xf4-f2fq-f69j Yarn Improper link resolution before file access (Link Following)
HIGH
Official page ↗
- Aliases
- CVE-2019-10773
- Ecosystem
- npm
- Packages
- yarn
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-78
- Reviewed
- 2020-02-13
Affected packages
• npm yarn: < 1.22.0 → fixed in 1.22.0
Description
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.
Related
Alias · CVE (1)
- 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… vulnerability
Weakness · CWE (1)
- CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-10773 advisory
- https://github.com/yarnpkg/yarn/issues/7761#issuecomment-565493023 web
- https://github.com/yarnpkg/yarn/pull/7755 web
- https://github.com/yarnpkg/yarn/commit/039bafd74b7b1a88a53a54f8fa6fa872615e90e7 web
- https://access.redhat.com/errata/RHSA-2020:0475 web
- https://blog.daniel-ruf.de/critical-design-flaw-npm-pnpm-yarn web
- https://lists.fedoraproject.org/archives/list/[email protected]/message/3HIZW4NZVV5QY5WWGW2JRP3FHYKZ6ZJ5 web
- https://lists.fedoraproject.org/archives/list/[email protected]/message/ITY5BC63CCC647DFNUQRQ5AJDKUKUNBI web
- https://snyk.io/vuln/SNYK-JS-YARN-537806, web