CVE-2018-7408Npmjs Npm
High 7.8
Follow: this CVE · Npmjs · Npmjs Npm We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Npm.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| npmjs | npm | 5.7.0 |
Official sources
References
Links published by the sources. Open them with care.
- blog.npmjs.org Vendor Advisory
- github.com Third Party Advisory
- github.com Issue Tracking Third Party Advisory