cve.bz

CVE-2019-16777 Improper Privilege Management

6.5 mediumEPSS 2.0%Fix available

Medium (6.5). EPSS 2.0% estimated probability of exploitation activity in the next 30 days. Fixed in npm 6.13.4.

On this page
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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
EPSS
2.0% (unchanged from 2.0% a week ago; 2.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-269 Improper Privilege Management
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control, A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-16777 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-16777?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-16777?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-16777 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
npm clifrom < 6.13.4 before 6.13.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4328-8hgf-7wjrnpmnpm<6.13.46.13.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14npm6.13.4+ds-2DEBIAN-CVE-2019-16777
Ubuntu14.04:LTS, 20.04:LTS, 22.04:LTS and 6 morenpmno fix listedUBUNTU-CVE-2019-16777
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 2 more1:12.14.1-1.module+el8.1.0+5466+30f75629RHEA-2020:0330
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:10.19.0-1.module+el8.1.0+5726+6ed65f8cRHSA-2020:0579
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:1.18.3-1.module+el8+2632+6c5111edRHSA-2020:0579
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:1.18.3-1.module+el8.1.0+3369+37ae6a45RHEA-2020:0330
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:17-3.module+el8+2873+aa7dfd9aRHSA-2020:0579
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:17-3.module+el8.1.0+3369+37ae6a45RHEA-2020:0330
Red Hatenterprise_linux:8::appstreamnpm1:6.13.4-1.10.19.0.1.module+el8.1.0+5726+6ed65f8cRHSA-2020:0579
Red Hatenterprise_linux:8::appstreamnpm1:6.13.4-1.12.14.1.1.module+el8.1.0+5466+30f75629RHEA-2020:0330
Red Hatrhel_e4s:8.0::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:10.19.0-1.module+el8.0.0+5738+1362a79cRHSA-2020:0573
Red Hatrhel_e4s:8.0::appstreamnodejs-nodemon0:1.18.3-1.module+el8+2632+6c5111edRHSA-2020:0573
Red Hatrhel_e4s:8.0::appstreamnodejs-packaging0:17-3.module+el8+2873+aa7dfd9aRHSA-2020:0573
Red Hatrhel_e4s:8.0::appstreamnpm1:6.13.4-1.10.19.0.1.module+el8.0.0+5738+1362a79cRHSA-2020:0573
6 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Web and Scripting 12nodejs1010.18.0-1.15.1SUSE-SU-2020:0063-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1212.15.0-1.6.1SUSE-SU-2020:0429-1
SUSELinux Enterprise Module for Web and Scripting 12, OpenStack Cloud 7, OpenStack Cloud Crowbar 8 and 1 morenodejs66.17.1-11.30.1SUSE-SU-2020:0247-1
SUSELinux Enterprise Module for Web and Scripting 15, Linux Enterprise Module for Web and Scripting 15 SP1nodejs1010.18.0-1.15.1SUSE-SU-2020:0104-1
SUSELinux Enterprise Module for Web and Scripting 15, Linux Enterprise Module for Web and Scripting 15 SP1nodejs88.17.0-3.25.1SUSE-SU-2020:0043-1
openSUSELeap 15.1nodejs88.17.0-lp151.2.9.1openSUSE-SU-2020:0059-1
AlmaLinux8nodejs-nodemon1.18.3-1.module_el8.3.0+2023+d2377ea3ALEA-2020:0330 ALSA-2020:0579
AlmaLinux8nodejs-nodemon1.18.3-1.module_el8.3.0+2047+b07ac28eALEA-2020:0330 ALSA-2020:0579
AlmaLinux8nodejs-packaging17-3.module_el8.3.0+2023+d2377ea3ALEA-2020:0330 ALSA-2020:0579
AlmaLinux8nodejs-packaging17-3.module_el8.4.0+2224+b07ac28eALEA-2020:0330 ALSA-2020:0579
AlmaLinux8nodejs-packaging17-3.module_el8.4.0+2521+c668cc9fALEA-2020:0330 ALSA-2020:0579
Rocky Linux8nodejs-nodemon0:1.18.3-1.module+el8.3.0+101+f84c7154RLSA-2020:0579
Rocky Linux8nodejs-packaging0:17-3.module+el8.3.0+101+f84c7154RLSA-2020:0579

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8nodejs:12-8010020200116150415.c27ad7f8Fixed 2020-02-04RHEA-2020:0330
Red Hat Enterprise Linux 8nodejs:10-8010020200213140254.c27ad7f8Fixed 2020-02-25RHSA-2020:0579
Red Hat Enterprise Linux 8.0 Update Services for SAP Solutionsnodejs:10-8000020200214110450.f8e95b4eFixed 2020-02-24RHSA-2020:0573
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs10-nodejs-0:10.19.0-1.el7Fixed 2020-02-25RHSA-2020:0597
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs12-nodejs-0:12.16.1-1.el7Fixed 2020-02-25RHSA-2020:0602
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs8-nodejs-0:8.17.0-2.el7Fixed 2020-06-19RHSA-2020:2625
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSrh-nodejs10-nodejs-0:10.19.0-1.el7Fixed 2020-02-25RHSA-2020:0597
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSrh-nodejs12-nodejs-0:12.16.1-1.el7Fixed 2020-02-25RHSA-2020:0602
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-nodejs10-nodejs-0:10.19.0-1.el7Fixed 2020-02-25RHSA-2020:0597
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-nodejs12-nodejs-0:12.16.1-1.el7Fixed 2020-02-25RHSA-2020:0602
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-nodejs8-nodejs-0:8.17.0-2.el7Fixed 2020-06-19RHSA-2020:2625
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-nodejs10-nodejs-0:10.19.0-1.el7Fixed 2020-02-25RHSA-2020:0597
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-nodejs12-nodejs-0:12.16.1-1.el7Fixed 2020-02-25RHSA-2020:0602
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-nodejs8-nodejs-0:8.17.0-2.el7Fixed 2020-06-19RHSA-2020:2625
Red Hat OpenShift Application Runtimesnodejs8Out of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-16777.

Attack patterns (CAPEC)

  • CAPEC-58 Restful Privilege Elevation Likelihood: High · Severity: High
  • CAPEC-122 Privilege Abuse Likelihood: High · Severity: Medium
  • CAPEC-233 Privilege Escalation
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON