Skip to content

Fix npm dependency vulnerabilities in onchain-app-template#1

Open
Copilot wants to merge 3 commits intomasterfrom
copilot/update-documentation-for-repo
Open

Fix npm dependency vulnerabilities in onchain-app-template#1
Copilot wants to merge 3 commits intomasterfrom
copilot/update-documentation-for-repo

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 21, 2026

Several direct and transitive npm dependencies in the onchain-app-template carried known CVEs, including critical DoS and authorization bypass issues in next and an unpatched esbuild via @wagmi/cli: latest.

Direct dependency updates

  • next ^14.2.5^15.2.9 — 14.x has no patch for the HTTP request deserialization DoS (GHSA-7m27-7ghc-44w9); earliest clean release is 15.2.9
  • @wagmi/cli pinned to 2.10.0 (was resolving to 2.1.16 via latest) — picks up patched esbuild (GHSA-67mh-4wv8-2f99)

Transitive dependency resolutions

Added resolutions to force safe versions through the dependency tree:

Package Pinned to Severity
sha.js ^2.4.12 Critical
cross-spawn ^7.0.5 High
glob ^10.5.0 High
h3 ^1.15.5 High
node-forge ^1.3.3 High
minimatch ^10.2.1 High
bn.js ^5.2.3 Moderate
lodash ^4.17.23 Moderate

Housekeeping

  • Moved @testing-library/* entries to their alphabetical position in devDependencies
  • Swapped jsdom/lokijs to restore alphabetical order
Original prompt

Pull Request: https://github.com/Deejae69/scaling-computing-machine/pull/4/files


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits February 21, 2026 13:59
…o onchain-app-template/package.json

Co-authored-by: Deejae69 <179696940+Deejae69@users.noreply.github.com>
…ability

Co-authored-by: Deejae69 <179696940+Deejae69@users.noreply.github.com>
Copilot AI changed the title [WIP] Update documentation for project scaling-computing-machine Fix npm dependency vulnerabilities in onchain-app-template Feb 21, 2026
Copilot AI requested a review from Deejae69 February 21, 2026 14:04
@Deejae69 Deejae69 marked this pull request as ready for review February 27, 2026 01:09
Copilot AI review requested due to automatic review settings February 27, 2026 01:09
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the onchain-app-template JavaScript dependencies to address known CVEs (including issues called out in next and transitive dependencies), primarily by upgrading direct deps and adding transitive version pinning.

Changes:

  • Upgraded next to ^15.2.9 and pinned @wagmi/cli to 2.10.0.
  • Added transitive dependency pins via resolutions for several vulnerable packages.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +50 to +58
"resolutions": {
"cross-spawn": "^7.0.5",
"sha.js": "^2.4.12",
"node-forge": "^1.3.3",
"bn.js": "^5.2.3",
"glob": "^10.5.0",
"h3": "^1.15.5",
"lodash": "^4.17.23",
"minimatch": "^10.2.1"
Copy link

Copilot AI Feb 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The resolutions field is only honored by some package managers (notably Yarn). If consumers install this template with npm (which uses overrides) or pnpm (which uses pnpm.overrides), these pins may be ignored and the vulnerable transitive versions could still be selected. Consider either (a) switching to the override mechanism for the intended package manager, or (b) adding a packageManager field (and ideally a lockfile) to make it explicit that installs must use a tool that honors resolutions.

Copilot uses AI. Check for mistakes.
"ci:check": "biome ci --formatter-enabled=false --linter-enabled=false",
"ci:format": "biome ci --linter-enabled=false --organize-imports-enabled=false",
"ci:lint": "biome ci --formatter-enabled=false --organize-imports-enabled=false",
"dev": "NODE_OPTIONS='--inspect' next dev",
Copy link

Copilot AI Feb 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dev script uses POSIX-style env var assignment with single quotes (NODE_OPTIONS='--inspect' ...), which will fail on Windows shells. If this template is intended to be cross-platform, consider using a cross-platform env helper (e.g. cross-env) or moving --inspect into a separate dev:inspect script while keeping dev portable.

Copilot uses AI. Check for mistakes.
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.

3 participants