GHSA-hjxc-462x-x77j

Suggest an improvement
Source
https://github.com/advisories/GHSA-hjxc-462x-x77j
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-hjxc-462x-x77j/GHSA-hjxc-462x-x77j.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-hjxc-462x-x77j
Aliases
Published
2022-02-09T22:49:38Z
Modified
2023-11-08T04:01:14.948368Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
TOCTOU Race Condition in Yarn
Details

The package integrity validation in yarn < 1.19.0 contains a TOCTOU vulnerability where the hash is computed before writing a package to cache. It's not computed again when reading from the cache. This may lead to a cache pollution attack. This issue is fixed in 1.19.0.

Database specific
{
    "nvd_published_at": "2020-03-15T18:15:00Z",
    "severity": "MODERATE",
    "github_reviewed_at": "2021-04-08T22:21:40Z",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-367"
    ]
}
References

Affected packages

npm / yarn

Package

Affected ranges

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