GHSA-5xf4-f2fq-f69j

Suggest an improvement
Source
https://github.com/advisories/GHSA-5xf4-f2fq-f69j
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/02/GHSA-5xf4-f2fq-f69j/GHSA-5xf4-f2fq-f69j.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-5xf4-f2fq-f69j
Aliases
Published
2020-02-14T23:10:16Z
Modified
2025-01-08T05:42:11.367846Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Yarn Improper link resolution before file access (Link Following)
Details

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.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-78"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2020-02-13T21:01:35Z"
}
References

Affected packages

npm / yarn

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.22.0

Database specific

{
    "last_known_affected_version_range": "<= 1.21.1"
}