Skip to content

fix(deps): npm audit fixes for job 30257651403 - #195

Closed
vnsamy-code wants to merge 4 commits into
nizos:mainfrom
vnsamy-code:chore/npm-audit-fixes-and-overrides
Closed

fix(deps): npm audit fixes for job 30257651403#195
vnsamy-code wants to merge 4 commits into
nizos:mainfrom
vnsamy-code:chore/npm-audit-fixes-and-overrides

Conversation

@vnsamy-code

Copy link
Copy Markdown
Contributor

npm ci was failing on every CI job with "Missing: @emnapi/runtime@1.11.3
from lock file". My local npm (11.6.2) resolves the napi-rs optional
peer deps differently than CI's bundled npm 10.9.8, so the lockfile
looked consistent locally but wasn't portable to the Linux runner.
…ions

npm's own tooling (install, update, dedupe, audit fix, audit fix --force)
consistently refuses to touch @storybook/test-runner's bundled nyc/rimraf/
test-exclude chain, and the jest-reporters glob chain, regardless of any
override applied in package.json - scoped or not. audit fix --force does
trigger a resolution, but it ignores overrides entirely and instead
proposes an unrelated 25-finding cascade (even suggesting a jest downgrade
to a 2019-era 25.0.0), so it isn't a usable path.

Hand-edited package-lock.json instead: replaced the four stale glob@7.2.3/
10.5.0 entries (under nyc, rimraf, test-exclude, and the jest-reporters
chain) with glob@13.0.6, which depends on minimatch@^10.2.2 (already
overridden to a patched brace-expansion) instead of the old vulnerable
minimatch@3.x/9.x lines. Added the two new leaf deps glob@13 needs
(path-scurry@2.0.2, lru-cache@11.5.2) and removed now-orphaned entries.
Also bumped the separately-stuck node_modules/js-yaml (nyc's
@istanbuljs/load-nyc-config chain) from 4.2.0 to 4.3.0 the same way.

Verified npm ci and npm audit are clean under both the local npm and
npm 10.9.8 (matching CI). Full build, typecheck, lint, and test suite
pass with zero new failures - the only failures are the same pre-existing
environment-specific ones (missing rubocop/golangci-lint binaries and
reporter toolchains locally), confirmed identical before and after this
change by diffing failure signatures.

npm audit: 2 -> 0 vulnerabilities.
@nizos

nizos commented Aug 16, 2026

Copy link
Copy Markdown
Owner

Thanks for helping me with resolving the audit issues while I'm on vacation @vnsamy-code. The audit issues are now resolved upstream and main has no audit issues. I will be closing this one now. Thanks again!

@nizos nizos closed this Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants