Skip to content

Pin patched npm transitives for open Dependabot alerts - #52

Closed
vm06007 wants to merge 6 commits into
mainfrom
security/dependabot-pins
Closed

Pin patched npm transitives for open Dependabot alerts#52
vm06007 wants to merge 6 commits into
mainfrom
security/dependabot-pins

Conversation

@vm06007

@vm06007 vm06007 commented Aug 21, 2026

Copy link
Copy Markdown
Member

Summary

  • Pins patched versions of the listed Dependabot packages (axios 1.19.0, ws 7.5.13, form-data 2.5.6, minimatch 3.1.5/5.1.9, nanoid 3.3.18, elliptic 6.6.1, plus sha.js, cipher-base, base-x, secp256k1, tough-cookie, tar).
  • Regenerates package-lock.json against Hardhat 3 so unused ganache/request/swarm-js trees drop out (sha.js, cipher-base, base-x, secp256k1, tough-cookie, tar are gone from the install graph).
  • Adds .npmrc with legacy-peer-deps=true so CI npm install matches the Hardhat 3 vs @nomiclabs/hardhat-* v2 peer mismatch.

What this should close

The selected form-data, ws, axios, sha.js, cipher-base, minimatch, base-x, secp256k1, tough-cookie, tar, elliptic (critical ECDSA), and nanoid alerts.

Elliptic GHSA-848j (<= 6.6.1, low, no patch) will remain.

Test plan

  • Confirm GitHub Dependabot alerts for the listed packages dismiss after merge
  • npm install succeeds with the committed .npmrc
  • Foundry checks are the same pre-existing failures as main (missing Balancer/OpenZeppelin gitlinks, plus stale BasketSwap/FlexibleDraw tests). Merge needs admin bypass of those two required checks.

vm06007 and others added 6 commits August 22, 2026 00:13
Force axios, ws, form-data, minimatch, nanoid, and related crypto helpers onto patched releases so Dependabot can close the open lockfile alerts. Regenerating with legacy-peer-deps drops unused ganache/request/tar trees left over from Hardhat 2.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep the Hardhat 3 lockfile refresh and union npm overrides with pins already landed from sha.js, brace-expansion, and js-yaml.

Co-authored-by: Cursor <cursoragent@cursor.com>
Re-resolve the lockfile after the picomatch bump and record Balancer, OpenZeppelin, and Permit2 as git submodules so Foundry CI can compile.

Co-authored-by: Cursor <cursoragent@cursor.com>
.gitmodules already listed these libraries, but they were never stored as gitlinks, so Foundry CI checkout could not fetch them.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep this PR limited to npm pins. Foundry submodule gitlinks belong with a dedicated compile fix.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vm06007

vm06007 commented Aug 21, 2026

Copy link
Copy Markdown
Member Author

Closing — superseded by #57, which dropped the unused Hardhat/npm lockfile that was generating these alerts. Remaining Dependabot items should auto-close on the next scan. Foundry CI removal is in a follow-up PR.

@vm06007 vm06007 closed this Aug 21, 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.

1 participant