HOMEVULNERABILITIESCVE-2019-16777
MEDIUM

CVE-2019-16777

CWE-22Published: December 13, 2019· Updated: Jun 17, 2026

6.5
CVSS v3.1

Official 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.

NVD Source

Technical Analysis

CVE-2019-16777 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.

Exploitation requires low privileges, which limits the exposure to scenarios where an attacker has already gained initial access.

A successful exploit results in full integrity compromise (data manipulation), with a CVSS base score of 6.5.

CVSS v3.1 Vector Breakdown

Exploitability
Attack VectorNetwork
Attack ComplexityLow
Privileges Req.Low
User InteractionNone
ScopeUnchanged
Impact
ConfidentialityNone
IntegrityHigh
AvailabilityNone
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Affected Vendors & Products

Fedora1 product(s)
fedora
npmjs1 product(s)
npm
openSUSE1 product(s)
leap
Oracle1 product(s)
graalvm
Red Hat2 product(s)
enterprise linuxenterprise linux eus
Source: NVD CPE · 6 total CPE entries

Exploit & PoC Resources

NO KNOWN EXPLOITNo public exploit confirmed at this time
External links open in a new tab. Always verify in a controlled environment before use.

Official Patches & Advisories

All References (22)

Quick Facts

CVE IDCVE-2019-16777
CVSS Score6.5 / 10
SeverityMEDIUM
WeaknessCWE-22
CISA KEVNo
Affected5 vendor(s)
PublishedDec 13, 2019

Related CVEs (CWE-22)

Recommended Actions

  • Apply vendor patches immediately
  • Monitor CVE-2019-16777 in threat intel feeds
  • Review IDS/IPS signatures for exploitation attempts
Data sourced from NVD (NIST), CISA KEV, and EPSS (FIRST). Analysis generated by CTIWatch. CVE data is provided under the NVD usage policy.