{"id":"GHSA-ph34-pc88-72gc","revision":"e0231b34047a4b9cb7ac45295a03665e","records":[{"revision":"e0231b34047a4b9cb7ac45295a03665e","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-ph34-pc88-72gc","aliases":["CVE-2018-7408"],"title":"Incorrect Permission Assignment for Critical Resource in NPM","description":"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.","state":0,"publishedAt":"2022-05-13T01:53:21+00:00","modifiedAt":"2026-09-10T03:49:35.4875216+00:00","affected":[{"ecosystem":"npm","name":"npm","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"5.7.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2018-7408","https://github.com/npm/npm/issues/19883","https://github.com/npm/npm/commit/74e149da6efe6ed89477faa81fef08eee7999ad0","http://blog.npmjs.org/post/171169301000/v571"],"sourceUrl":"https://github.com/advisories/GHSA-ph34-pc88-72gc","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-ph34-pc88-72gc","identifiers":["GHSA-ph34-pc88-72gc","CVE-2018-7408"]},"retained":false,"historicalAffected":[]}],"coverage":[]}