Repository navigation
Security
Fixes GHSA-c8vv-4wxp-67cc (CVSS 4.0: 5.9, medium), reported by @Char0n1507. Versions 2.7.0 to 2.11.13 ran npm audit in the audited project's directory, so the project's .npmrc could name its own registry and have npm send the auditor's environment variables to it as an auth token.
scanners/javascript.shandscanners/nodejs.shrunnpm auditon a copy ofpackage.json,package-lock.jsonandnpm-shrinkwrap.jsonin an empty temporary directory, with--prefixset to that copy and--globalconfigset to the user's global npmrc. npm reads neither the project's.npmrcnor a project or workspace root planted above the temporary directory (#191).- The npm check reads
metadata.vulnerabilities.total. Before, every successful run was reported as "Vulnerable dependencies found" and a failed run as "No known vulnerable dependencies"; a run that could not check is now an error (#191).
Other changes
- The rm hook reports a recursive delete only for a recursive
rmcall (#190). logging.md:fingers_crosseddrops downgraded security events (#189).
What's Changed
- docs(logging): fingers_crossed drops downgraded security events by @CybotTM in #189
- fix(hook): report a recursive delete only for a recursive rm by @CybotTM in #190
- fix(scanners): run npm audit without the audited project's .npmrc by @CybotTM in #191 — reported by @Char0n1507 in GHSA-c8vv-4wxp-67cc
- chore(release): v2.11.14 by @CybotTM in #192
Full Changelog: v2.11.13...v2.11.14