Skip to content

chore(deps): pro 72 chore solve critical and high dependency vulnerabilities from dependabot#125

Merged
Seth-Schmidt merged 25 commits intomainfrom
feature/pro-72-chore-solve-criticalhigh-dependency-vulnerabilities-from
Apr 28, 2026
Merged

chore(deps): pro 72 chore solve critical and high dependency vulnerabilities from dependabot#125
Seth-Schmidt merged 25 commits intomainfrom
feature/pro-72-chore-solve-criticalhigh-dependency-vulnerabilities-from

Conversation

@Seth-Schmidt
Copy link
Copy Markdown
Contributor

Overview

Addresses critical and high severity dependency vulnerabilities surfaced by dependabot across all packages under contracts/. The fix is implemented primarily through scoped package-manager overrides rather than direct dependency bumps as most parent dependencies do not cover the target ranges (LayerZero tooling + Hardhat).

Changes by package

Repository-level

  • .github/dependabot.yml — adds exclude-paths for contracts/feesBurner/ and contracts/pauserSetWrapper/ (now deprecated/archived).
  • contracts/feesBurner/README.md, contracts/pauserSetWrapper/README.md — prepend a deprecation/archive warning banner.

pnpm workspaces (broad CVE override sweeps)

These packages received large pnpm.overrides blocks pinning vulnerable transitive packages to patched ranges. Override block was generated by pnpm audit and duplicate entries condensed by Claude.

  • contracts/governance/package.json — removed the duplicated top-level overrides and consolidated everything under pnpm.overrides; added ~25 CVE pins.
  • contracts/solanaOFT/package.json — same consolidation; added pins including protobufjs, valibot, yargs-parser.
  • contracts/token/package.json — adds the largest set, including pins for @eslint/plugin-kit, @hono/node-server, @modelcontextprotocol/sdk, hono, path-to-regexp v8 range, etc.

npm workspaces (targeted, scoped overrides)

These packages use npm-style nested overrides to scope fixes to specific parent dependencies manually:

  • contracts/safe/package.json — scoped overrides for hardhat-deploy (elliptic, ws), hardhat (serialize-javascript, lodash), solhint (lodash); top-level axios and glob bumps.
  • contracts/staking/package.json — scoped serialize-javascript, axios, ws, tar, glob fixes across hardhat, hardhat-deploy, @openzeppelin/hardhat-upgrades, hardhat-gas-reporter, mocha, solidity-coverage, sqlite3. Keeps the existing elliptic 6.6.1 pin.
  • contracts/confidential-batcher/package.json — scoped axios (under hardhat-deploy) and serialize-javascript (under hardhat/mocha/solidity-coverage).
  • contracts/confidential-wrapper/package.json — same pattern; scoped axios under hardhat-deploy, hardhat-gas-reporter, @openzeppelin/hardhat-upgrades, plus serialize-javascript fixes.
  • contracts/chains-config-checker/package.json — scoped lodash@^4.18.1 under @layerzerolabs/lz-solana-sdk-v2 and @layerzerolabs/oft-v2-solana-sdk.
  • contracts/fhevm-cli/package.json — scoped lodash and serialize-javascript under hardhat and @trivago/prettier-plugin-sort-imports.
  • contracts/confidential-fhevm-wrapper-registry/package.json — adds an overrides block with axios and serialize-javascript fixes (see file diff).

Deprecation

  • feesBurner and pauserSetWrapper are intentionally excluded from further Dependabot updates because they are archived/deprecated.

…to version 7.0.5

- Bumped axios from 1.15.0 to 1.15.2 in package-lock.json.
- Updated serialize-javascript from 6.0.2 to 7.0.5, adding a node engine requirement in package-lock.json.
- Added axios version override in package.json to ensure compatibility.
- Updated axios to version 0.30.3 in package-lock.json, replacing the previous version 1.15.2.
- Added version overrides for axios and serialize-javascript in package.json to ensure compatibility.
- Removed outdated proxy-from-env version 2.1.0 and added version 1.1.0 for various dependencies in package-lock.json.
…nfidential-wrapper

- Updated serialize-javascript to version 7.0.5 in package-lock.json, including a node engine requirement.
- Added version override for axios in package.json to ensure compatibility with the updated dependencies.
… to version 7.0.5 with overrides

- Updated lodash to version 4.18.1 in package-lock.json, including a version override in package.json.
- Updated serialize-javascript to version 7.0.5 in package-lock.json, adding a node engine requirement and an override in package.json.
…es in governance

- Removed outdated version overrides for @openzeppelin/contracts and @openzeppelin/contracts-upgradeable in both package.json and pnpm-lock.yaml.
- Updated the version constraints for @openzeppelin/contracts and @openzeppelin/contracts-upgradeable to support versions ^4.8.1 and ^5.0.0, ensuring compatibility with the latest releases.
- Removed "peer" flags from several dependencies in package-lock.json to streamline configuration.
- Updated glob to version 10.5.0 in package.json and package-lock.json, ensuring compatibility with the latest features and security fixes.
- Added version overrides for axios, ws, elliptic, lodash, serialize-javascript, and glob in package.json to maintain compatibility across the project.
…anaOFT

- Removed outdated version overrides for @openzeppelin/contracts and @openzeppelin/contracts-upgradeable in package.json and pnpm-lock.yaml.
- Updated version constraints to support versions ^4.8.1 and ^5.0.0, ensuring compatibility with the latest releases.
- Added new dependency @isaacs/fs-minipass version 4.0.1 in package-lock.json.
- Updated serialize-javascript to version 7.0.5 with a new node engine requirement in package-lock.json.
- Updated tar to version 7.5.13 and adjusted its dependencies in package-lock.json.
- Added version overrides for axios, ws, tar, and serialize-javascript in package.json to ensure compatibility across the project.
- Removed outdated version overrides for @openzeppelin/contracts and @openzeppelin/contracts-upgradeable in package.json and pnpm-lock.yaml.
- Updated version constraints to support versions ^4.8.1 and ^5.0.0, ensuring compatibility with the latest releases.
…hains-config-checker

- Introduced version overrides for lodash to ^4.18.1 specifically for @layerzerolabs/lz-solana-sdk-v2 and @layerzerolabs/oft-v2-solana-sdk in package.json, ensuring compatibility with these dependencies.
- Added version overrides for axios and serialize-javascript in package.json files for confidential-batcher, confidential-token-wrappers-registry, confidential-wrapper, and staking to ensure compatibility with updated dependencies.
- Updated package-lock.json files to reflect the new axios version 0.31.1 and added proxy-from-env as a dependency in hardhat-deploy.
- Ensured consistent axios and serialize-javascript versions across hardhat-related packages to maintain compatibility.
- Changed ws version from 8.18.0 to 7.5.10 in package-lock.json to ensure compatibility with existing dependencies.
- Updated node engine requirement for ws to >=8.3.0 and adjusted peer dependency for utf-8-validate to ^5.0.2.
- Introduced a version override for elliptic to 6.6.1 in package.json to ensure compatibility with existing dependencies.
…anaOFT

- Eliminated unnecessary version overrides for various dependencies in package.json files for governance and solanaOFT, streamlining dependency management and ensuring compatibility with existing versions.
… deprecated

- Added exclusion paths for `feesBurner` and `pauserSetWrapper` in the dependabot configuration to prevent updates.
- Updated README files for `feesBurner` and `pauserSetWrapper` to indicate that these repositories are deprecated and no longer maintained.
- Updated ws version from 7.5.10 to 8.17.1 in the safe package-lock.json for improved compatibility.
- Downgraded ws version from 8.18.0 to 7.5.10 in the staking package-lock.json to maintain compatibility with existing dependencies.
- Adjusted node engine requirements and peer dependencies accordingly.
@Seth-Schmidt Seth-Schmidt self-assigned this Apr 27, 2026
@cla-bot cla-bot Bot added the cla-signed label Apr 27, 2026
- Changed undici dependency version from <6.24.0 to ^6.24.0 in package.json files for governance and token.
- Updated undici version from 8.1.0 to 6.25.0 in pnpm-lock.yaml files for governance and token to ensure compatibility with existing dependencies.
- Introduced a new step to set up Node.js version 20.x in the contracts-staking-hardhat-tests.yml workflow.
- Configured caching for npm dependencies to optimize build times.
@Seth-Schmidt Seth-Schmidt marked this pull request as ready for review April 27, 2026 23:44
@Seth-Schmidt Seth-Schmidt requested review from a team and mortendahl as code owners April 27, 2026 23:44
Copy link
Copy Markdown
Contributor

@gasp gasp left a comment

Choose a reason for hiding this comment

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

« Cet univers désormais sans maître ne lui paraît ni stérile, ni futile. Chacun des grains de cette pierre, chaque éclat minéral de cette montagne pleine de nuit, à lui seul, forme un monde. La lutte elle-même vers les sommets suffit à remplir un cœur d'homme. Il faut imaginer Sisyphe heureux. »

Albert Camus, in The Myth of Sisyphus

@Seth-Schmidt Seth-Schmidt merged commit 7631aba into main Apr 28, 2026
12 checks passed
@Seth-Schmidt Seth-Schmidt deleted the feature/pro-72-chore-solve-criticalhigh-dependency-vulnerabilities-from branch April 28, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants