Live threats

All CVEs / Npmjs

CVE-2018-7408Npmjs Npm

High 7.8

Priority
47
CVSS 3.0
7.8
EPSS
0.3%
probability of exploitation in 30 days · percentile 18
Auth required
Yes
Published
Feb 22, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-732
Vector
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What happens

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 upgrade -g npm" command, and also announced in the vendor's blog without mention of pre-release status). It might allow local users to bypass intended filesystem access restrictions because ownerships of /etc and /usr directories are being changed unexpectedly, related to a "correctMkdir" issue.

Original NVD text.

What to do

  1. Apply the vendor's security update for Npm.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm npm < 5.7.1 5.7.1 npm install npm@5.7.1

Per OSV / GitHub Advisories (GHSA-ph34-pc88-72gc). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
npmjsnpm5.7.0

Official sources

References

Links published by the sources. Open them with care.