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.
The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Yarn | Yarnpkg | * | 1.21.1 (excluding) |
Red Hat Quay 3 | RedHat | quay3/clair-jwt:v3.2.1-1 | * |
Node-yarnpkg | Ubuntu | disco | * |
Node-yarnpkg | Ubuntu | eoan | * |
Node-yarnpkg | Ubuntu | groovy | * |
Node-yarnpkg | Ubuntu | hirsute | * |
Node-yarnpkg | Ubuntu | impish | * |
Node-yarnpkg | Ubuntu | kinetic | * |
Node-yarnpkg | Ubuntu | trusty | * |
Node-yarnpkg | Ubuntu | upstream | * |