Skip to content
Noroxi
NVD / CVE Program· CNA GitHub_M

CVE-2019-16777: Arbitrary File Overwrite in npm CLI

MediumCVSS 6.5 · v3.1—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 27/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 2% (FIRST EPSS); higher than 81.4% of all records.
  • Anyone who can reach it over the internet can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: nodejs-nodemon (AlmaLinux:8) 1.18.3-1.module_el8.3.0+2023+d2377ea3, 1.18.3-1.module_el8.3.0+2047+b07ac28e; nodejs-packaging (AlmaLinux:8) 17-3.module_el8.4.0+2521+c668cc9f, 17-3.module_el8.4.0+2224+b07ac28e, 17-3.module_el8.3.0+2023+d2377ea3; npm (Debian:12) 6.13.4+ds-2.
  • Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).

Low priority for now. Upgrade to nodejs-nodemon (AlmaLinux:8) 1.18.3-1.module_el8.3.0+2023+d2377ea3, 1.18.3-1.module_el8.3.0+2047+b07ac28e; nodejs-packaging (AlmaLinux:8) 17-3.module_el8.4.0+2521+c668cc9f, 17-3.module_el8.4.0+2224+b07ac28e, 17-3.module_el8.3.0+2023+d2377ea3; npm (Debian:12) 6.13.4+ds-2 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

Published
Dec 12, 2019
Updated
Jun 16, 2026
EPSS
2.0% · 81th percentile

Report tools

JSON

Action score

27

Monitor

Low priority for now.

CVSS
26 / 40 · 6.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
1 / 30 · 2.0%

CNA vs NVD score

NVD
6.5
CNA · GitHub_M
7.7
1.2 point gap

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

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2019-16777

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
npmjsnpm
opensuseleap
oraclegraalvm
fedoraprojectfedora
redhatenterprise linux
redhatenterprise linux eus

Versions reported by the vendor

Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.

  • npm cli

    • < 6.13.4 and later · before 6.13.4affected

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8nodejs-nodemonbefore 1.18.3-1.module_el8.3.0+2023+d2377ea31.18.3-1.module_el8.3.0+2023+d2377ea3
AlmaLinux:8nodejs-nodemonbefore 1.18.3-1.module_el8.3.0+2047+b07ac28e1.18.3-1.module_el8.3.0+2047+b07ac28e
AlmaLinux:8nodejs-packagingbefore 17-3.module_el8.4.0+2521+c668cc9f17-3.module_el8.4.0+2521+c668cc9f
AlmaLinux:8nodejs-packagingbefore 17-3.module_el8.4.0+2224+b07ac28e17-3.module_el8.4.0+2224+b07ac28e
AlmaLinux:8nodejs-packagingbefore 17-3.module_el8.3.0+2023+d2377ea317-3.module_el8.3.0+2023+d2377ea3
Debian:12npmbefore 6.13.4+ds-26.13.4+ds-2
npmnpmbefore 6.13.46.13.4
openSUSE:Leap 15.1nodejs8before 8.17.0-lp151.2.9.18.17.0-lp151.2.9.1
Red Hat:enterprise_linux:8::appstreamnodejsbefore 1:12.14.1-1.module+el8.1.0+5466+30f756291:12.14.1-1.module+el8.1.0+5466+30f75629
Red Hat:enterprise_linux:8::appstreamnodejsbefore 1:10.19.0-1.module+el8.1.0+5726+6ed65f8c1:10.19.0-1.module+el8.1.0+5726+6ed65f8c
Red Hat:enterprise_linux:8::appstreamnodejs-debuginfobefore 1:10.19.0-1.module+el8.1.0+5726+6ed65f8c1:10.19.0-1.module+el8.1.0+5726+6ed65f8c
Red Hat:enterprise_linux:8::appstreamnodejs-debuginfobefore 1:12.14.1-1.module+el8.1.0+5466+30f756291:12.14.1-1.module+el8.1.0+5466+30f75629
Red Hat:enterprise_linux:8::appstreamnodejs-debugsourcebefore 1:10.19.0-1.module+el8.1.0+5726+6ed65f8c1:10.19.0-1.module+el8.1.0+5726+6ed65f8c
Red Hat:enterprise_linux:8::appstreamnodejs-debugsourcebefore 1:12.14.1-1.module+el8.1.0+5466+30f756291:12.14.1-1.module+el8.1.0+5466+30f75629
Red Hat:enterprise_linux:8::appstreamnodejs-develbefore 1:10.19.0-1.module+el8.1.0+5726+6ed65f8c1:10.19.0-1.module+el8.1.0+5726+6ed65f8c
Red Hat:enterprise_linux:8::appstreamnodejs-develbefore 1:12.14.1-1.module+el8.1.0+5466+30f756291:12.14.1-1.module+el8.1.0+5466+30f75629
Red Hat:enterprise_linux:8::appstreamnodejs-devel-debuginfobefore 1:10.19.0-1.module+el8.1.0+5726+6ed65f8c1:10.19.0-1.module+el8.1.0+5726+6ed65f8c
Red Hat:enterprise_linux:8::appstreamnodejs-docsbefore 1:10.19.0-1.module+el8.1.0+5726+6ed65f8c1:10.19.0-1.module+el8.1.0+5726+6ed65f8c
Red Hat:enterprise_linux:8::appstreamnodejs-docsbefore 1:12.14.1-1.module+el8.1.0+5466+30f756291:12.14.1-1.module+el8.1.0+5466+30f75629
Red Hat:enterprise_linux:8::appstreamnodejs-nodemonbefore 0:1.18.3-1.module+el8.1.0+3369+37ae6a450:1.18.3-1.module+el8.1.0+3369+37ae6a45
Red Hat:enterprise_linux:8::appstreamnodejs-packagingbefore 0:17-3.module+el8.1.0+3369+37ae6a450:17-3.module+el8.1.0+3369+37ae6a45
Red Hat:enterprise_linux:8::appstreamnpmbefore 1:6.13.4-1.10.19.0.1.module+el8.1.0+5726+6ed65f8c1:6.13.4-1.10.19.0.1.module+el8.1.0+5726+6ed65f8c
Red Hat:enterprise_linux:8::appstreamnpmbefore 1:6.13.4-1.12.14.1.1.module+el8.1.0+5466+30f756291:6.13.4-1.12.14.1.1.module+el8.1.0+5466+30f75629
Red Hat:rhel_e4s:8.0::appstreamnodejsbefore 1:10.19.0-1.module+el8.0.0+5738+1362a79c1:10.19.0-1.module+el8.0.0+5738+1362a79c

+29

Other highest-scoring records for the same primary product.

  • CVE-2021-43616The npm ci command in npm 7.x and 8.x through 8.1.3 proceeds with an installation even if dependency information in package-lock.json…
    40Plan
  • CVE-2019-16776Unauthorized File Access in npm CLI before before version 6.13.3
    33Monitor
  • CVE-2022-29244npm packing does not respect root-level ignore files in workspaces
    31Monitor

Published before and after this one in the same product

  • ← EarlierCVE-2018-7408Feb 22, 2018 · An issue was discovered in an npm 5.7.0 2018-02-21 pre-release (marked as "next: 5.7.0" and therefore automatically installed by an "npm…
    31Monitor
  • Later →CVE-2020-15095Jul 7, 2020 · Sensitive information exposure through logs in npm cli
    17Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:nodejs-nodemon1.18.3-1.module_el8.3.0+2023+d2377ea3 · AlmaLinux:8Package registry (OSV)
almalinux:nodejs-packaging17-3.module_el8.4.0+2224+b07ac28e · AlmaLinux:8Package registry (OSV)
debian:npm6.13.4+ds-2 · Debian:12Package registry (OSV)
npm:npm6.13.4Package registry (OSV)
opensuse:nodejs88.17.0-lp151.2.9.1 · openSUSE:Leap 15.1Package registry (OSV)
red hat:nodejs1:12.14.1-1.module+el8.1.0+5466+30f75629 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:nodejs-debuginfo1:12.14.1-1.module+el8.1.0+5466+30f75629 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:nodejs-debugsource1:12.14.1-1.module+el8.1.0+5466+30f75629 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:nodejs-devel1:12.14.1-1.module+el8.1.0+5466+30f75629 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:nodejs-devel-debuginfo1:10.19.0-1.module+el8.0.0+5738+1362a79c · Red Hat:rhel_e4s:8.0::appstreamPackage registry (OSV)
red hat:nodejs-docs1:12.14.1-1.module+el8.1.0+5466+30f75629 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:nodejs-nodemon0:1.18.3-1.module+el8.1.0+3369+37ae6a45 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:nodejs-packaging0:17-3.module+el8.1.0+3369+37ae6a45 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:npm1:6.13.4-1.12.14.1.1.module+el8.1.0+5466+30f75629 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:rh-nodejs10-nodejs0:10.19.0-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-nodejs10-nodejs-debuginfo0:10.19.0-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-nodejs10-nodejs-devel0:10.19.0-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
rocky linux:nodejs-nodemon0:1.18.3-1.module+el8.3.0+101+f84c7154 · Rocky Linux:8Package registry (OSV)
rocky linux:nodejs-packaging0:17-3.module+el8.3.0+101+f84c7154 · Rocky Linux:8Package registry (OSV)
suse:nodejs1010.18.0-1.15.1 · SUSE:Linux Enterprise Module for Web and Scripting 12Package registry (OSV)
suse:nodejs1212.15.0-1.6.1 · SUSE:Linux Enterprise Module for Web and Scripting 12Package registry (OSV)
suse:nodejs66.17.1-11.30.1 · SUSE:OpenStack Cloud 7Package registry (OSV)
suse:nodejs88.17.0-3.25.1 · SUSE:Linux Enterprise Module for Web and Scripting 15Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

National notice (Türkiye Cybersecurity Directorate / USOM)

Official security notices citing this record; remediation advice is on the agency's page.

All national notices →

Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
none
Integrity
high · data or configuration can be modified
Availability
none
Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
None
Integrity impact
High
Availability impact
None

CVSS vector

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

nvd-primary

Root cause

A user-supplied file name is joined with the allowed directory, but the result is never checked to confirm it is still inside that directory.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
const file = path.join(ROOT, req.query.name);res.sendFile(file);

Fixed

ts
const file = path.resolve(ROOT, req.query.name);if (!file.startsWith(ROOT + path.sep)) {  return res.sendStatus(400);}res.sendFile(file);

References

All records