Skip to content

fix: remediate degov dependency security alerts#652

Draft
fewensa wants to merge 1 commit intomainfrom
ohh-109-security-remediation
Draft

fix: remediate degov dependency security alerts#652
fewensa wants to merge 1 commit intomainfrom
ohh-109-security-remediation

Conversation

@fewensa
Copy link
Copy Markdown
Collaborator

@fewensa fewensa commented Apr 3, 2026

Summary

  • upgrade packages/web Prisma dependencies to 7.6.0 and pin transitive lodash to 4.18.1
  • upgrade packages/indexer to @subsquid/cli@^3.3.5 and add targeted resolutions for vulnerable transitive packages
  • regenerate pnpm-lock.yaml and yarn.lock so the current dependency graph resolves to patched versions

Validation

  • cd packages/web && npx -y pnpm@10.17.1 audit --json
  • cd packages/web && npx -y pnpm@10.17.1 build
  • cd packages/indexer && npx -y yarn@1.22.22 audit --json
  • cd packages/indexer && npx -y yarn@1.22.22 build
  • cd packages/indexer && npx -y yarn@1.22.22 test:unit
    Fails on a pre-existing TypeScript issue: tests import missing exports from ../../src/model in __tests__/unit/governor.test.ts and __tests__/accuracy/token-vote-power.test.ts.

Notes

  • This PR is intentionally limited to dependency manifest and lockfile changes; no application logic changed.
  • GitHub reported existing vulnerabilities on the default branch during push; this branch addresses the open alerts visible in the issue-linked Dependabot view.

Summary:
- upgrade web Prisma packages to 7.6.0 and pin lodash to 4.18.1
- bump indexer @subsquid/cli and add yarn resolutions for vulnerable transitive dependencies
- refresh pnpm and yarn lockfiles so vulnerable dependency paths resolve to patched versions

Rationale:
- remove the open GitHub Dependabot alerts visible for packages/web and packages/indexer
- keep the change scoped to manifest and lockfile updates without touching application logic
- use targeted resolutions where upstream ranges otherwise kept vulnerable versions selected

Tests:
- cd packages/web && npx -y pnpm@10.17.1 audit --json
- cd packages/web && npx -y pnpm@10.17.1 build
- cd packages/indexer && npx -y yarn@1.22.22 audit --json
- cd packages/indexer && npx -y yarn@1.22.22 build
- cd packages/indexer && npx -y yarn@1.22.22 test:unit (fails on pre-existing TS2305 missing exports from ../../src/model in governor and token-vote-power tests)
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 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