{"id":"CVE-2019-16775","published":"2019-12-13T00:55:15Z","modified":"2024-08-05T01:24:48Z","title":"Unauthorized File Access in npm CLI before before version 6.13.3","vendor":"npm","product":"cli","tier":"tail","description":{"text":"Versions of the npm CLI prior to 6.13.3 are vulnerable to an Arbitrary File Write. It is possible for packages to create symlinks to files outside of thenode_modules folder through the bin field upon installation. A properly constructed entry in the package.json bin field would allow a package publisher to create a symlink pointing to arbitrary files on a user's system when the package is installed. This behavior is still possible through install scripts. This vulnerability bypasses a user using the --ignore-scripts install option.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03334,"percentile":0.88588,"provenance":"source"},"cwes":[{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"}],"references":[{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00027.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z36UKPO5F3PQ3Q2POMF5LEKXWAH5RUFP/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://access.redhat.com/errata/RHEA-2020:0330","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2020:0573","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2020:0579","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2020:0597","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2020:0602","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://www.oracle.com/security-alerts/cpujan2020.html","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["x_refsource_MISC"]},{"url":"https://github.com/npm/cli/security/advisories/GHSA-m6cx-g6qm-p2cx","tags":["x_refsource_CONFIRM"]},{"url":"https://blog.npmjs.org/post/189618601100/binary-planting-with-the-npm-cli","tags":["x_refsource_MISC"]}],"priority":{"score":23.1,"factors":[{"name":"EPSS percentile","points":17.72},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"npm","affectedVersions":[{"vendor":"npm","product":"cli","versions":[">= < 6.13.3, < 6.13.3"]}],"affected":[{"ecosystem":"npm","package":"npm","vulnerableRanges":["<6.13.3"],"patched":["6.13.3"],"from":["GHSA-m6cx-g6qm-p2cx"],"provenance":"source"}],"euvd":{"id":"EUVD-2019-0798","exploited":false,"provenance":"source"}}