Skip to main content
No exploitation reportedFix available

CVE-2019-16777

No exploitation reported by the sources we read.

  • Published2019-12-13
  • WeaknessCWE-22 · CWE-269

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2019-12-1301:15CVE publishedNVD

Versions per branch

NVD · OSV
Fedoraproject fedora
BranchAffectedFixed in
31.x= 31no fix published
Npmjs npm
BranchAffectedFixed in
6.13< 6.13.46.13.4
Opensuse leap
BranchAffectedFixed in
15.1= 15.1no fix published

3 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • code-serverWolfiall versions · fixed in 0and 1 other package
  • code-serverChainguardall versions · fixed in 0and 67 other packages
  • gitlab-rails-19.1MinimOSall versions · fixed in 0
  • gitlab-rails-ce-assets-19.6Chainguardall versions · no fixed version listedand 5 other packages
  • libuvMageia:7all versions · fixed in 1.34.2-1.mga7
  • nodejsRed Hat:rhel_e4s:8.0::appstreamall versions · fixed in 1:10.19.0-1.module+el8.0.0+5738+1362a79cand 5 other packages
  • nodejsRed Hat:enterprise_linux:8::appstreamall versions · fixed in 1:12.14.1-1.module+el8.1.0+5466+30f75629and 4 other packages
  • nodejsRed Hat:enterprise_linux:8::appstreamall versions · fixed in 1:10.19.0-1.module+el8.1.0+5726+6ed65f8cand 5 other packages

46 more package ranges on OSV.dev

Vendor advisories

  • RHSA-2020:2625 Red Hat Product Security52 products fixed

    Red Hat Security Advisory: rh-nodejs8-nodejs security update

  • RHSA-2020:0602 Red Hat Product Security66 products fixed

    Red Hat Security Advisory: rh-nodejs12-nodejs security update

  • RHSA-2020:0597 Red Hat Product Security66 products fixed

    Red Hat Security Advisory: rh-nodejs10-nodejs security update

  • RHSA-2020:0579 Red Hat Product Security27 products fixed

    Red Hat Security Advisory: nodejs:10 security update

  • RHSA-2020:0573 Red Hat Product Security17 products fixed

    Red Hat Security Advisory: nodejs:10 security update

Full record on NVD

Fix

  1. Vendor fix Red Hat Product Security RHSA-2020:2625 · 62 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CNACVSS 3.17.7known since 2026-10-23
  • NVDCVSS 3.16.5read 2026-10-23
  • NVDCVSS 2.05.5read 2026-10-23
  • CNAweakness (CWE)CWE-22known since 2026-10-23
  • NVDweakness (CWE)CWE-269read 2026-10-23
  • FIRST EPSSEPSS score2.0 %2026-11-18
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHIGH2020-06-16

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Published
2019-12-13
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-4328-8hgf-7wjr

Frequently asked questions

What is CVE-2019-16777?

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.

Is CVE-2019-16777 actively exploited?

Active exploitation of CVE-2019-16777 has not been confirmed. Its EPSS score was 2.0% on 2026-11-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2019-16777?

CVE-2019-16777 has a CVSS v3 base score of 6.5 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.

Running npm? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record