VDB

CVE-2019-16777

CVE-2019-16777 PUBLISHED CVSS 7.7 HIGH

Arbitrary File Overwrite in npm CLI

Reported by github_m · Published December 13, 2019

npm is fixed in 6.13.4 (npm)

Versions of the npm CLI prior to 6.13.4 are vulnerable to an Arbitrary File Overwrite. It fails to prevent existing globally-installed binaries to be overwritten by other package installations. For example, if a package was installed globally and created a serve binary, any subsequent installs of packages that also create a serve binary would overwrite the previous serve binary. This behavior is still allowed in local installations and also through install scripts. This vulnerability bypasses a user using the --ignore-scripts install option.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
npmnpm6.13.4
npmArch Linux6.13.4-1
clinpm6.13.4
npmnpmjs6.13.4

Risk scores

CVSS 3.1
7.7
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N

Affected products

VendorProductVersions
npmcli< 6.13.4
chainguardgitlab-rails-ce-fips-18.1*
chainguardgitlab-rails-ce-18.11*
chainguardgitlab-rails-ee-fips-17.11*
archnpm0
chainguardgitlab-rails-ce-fips-18.9*
chainguardgitlab-rails-ce-19.2*
chainguardgitlab-rails-ee-fips-17.6*
chainguardgitlab-rails-ee-fips-17.4*
chainguardgitlab-rails-ce-18.5*
npmcli0
chainguardgitlab-rails-ce-19.3*
chainguardgitlab-rails-ee-17.7*
chainguardgitlab-rails-ce-fips-18.3*
chainguardgitlab-rails-ee-17.8*
chainguardgitlab-rails-ce-fips-18.8*
chainguardgitlab-rails-ce-18.6*
chainguardgitlab-rails-ce-fips-19.5*
chainguardgitlab-rails-ce-18.7*
chainguardcode-server*

…and 48 more

Timeline

  • Dec 12, 2019 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 9, 2026 Security Advisory (10 in total, the first dated here)
  • Aug 6, 2026 Distribution Patch (5 in total, the first dated here)
  • Sep 13, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2019-16777
vulnetix vdb fixes CVE-2019-16777

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-16777/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›