fix(deps): resolve all Dependabot alerts + clear adk OpenTelemetry advisories#543
Merged
Conversation
Clears the 29 open Dependabot alerts across 3 npm lockfiles and the
legacy Go module.
npm (TypeScript integrations) — bump the direct devDep vitest from ^2 to
^3.2.6 (pulls patched vite 7.3.5 + esbuild transitively) and add minimal
`overrides` for the remaining transitive advisories:
- adk/typescript: tar ^7.5.16, esbuild ^0.28.1, uuid ^11.1.1,
@tootallnate/once ^2.0.1
- mastra/typescript: esbuild >=0.28.1, js-yaml >=4.2.0
- vercel-ai/typescript: esbuild >=0.28.1
Go — legacy/src: github.com/go-chi/chi/v5 v5.2.2 -> v5.2.4.
Each package: lockfile regenerated, `npm run build` + `npm test` +
`tsc --noEmit` pass (vitest 3 needed no test/config changes); Go builds
and vets clean.
Out of scope (not Dependabot alerts; would need breaking changes):
adk/typescript still reports 11 moderate npm-audit advisories under the
pinned @google/adk@1.2.0 (@google/adk + OpenTelemetry family); the only
npm-offered fix is a semver-major @google/adk downgrade.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
@google/adk@1.2.0 is already the latest release, so it can't be bumped further. Its dependency tree pulls a split set of @opentelemetry stable packages — both 2.8.0 (patched) and 2.1.0 (vulnerable to GHSA-8988-4f7v-96qf, @opentelemetry/core <2.8.0). All 11 moderate npm-audit advisories trace to that single @opentelemetry/core<2.8.0. Override the stable OTel quartet (core, resources, sdk-metrics, sdk-trace-base) to 2.8.0 — the version already present in @google/adk's own tree, so this only dedupes the straggler 2.1.0 copies up to a version @google/adk already runs with. npm audit now reports 0 vulnerabilities for this package. Verified: build + typecheck + 50 tests pass, and @google/adk imports and initializes its telemetry cleanly under the override (runtime smoke test). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Resolves all 29 open Dependabot alerts plus the 11 moderate
npm auditadvisories in the adk package — every TypeScript integration is nownpm audit-clean, and the legacy Go module is patched.integrations/adk/typescript^2→^3.2.6; overrides: tar^7.5.16, esbuild^0.28.1, uuid^11.1.1, @tootallnate/once^2.0.1, @opentelemetry/{core,resources,sdk-metrics,sdk-trace-base}2.8.0integrations/mastra/typescript>=0.28.1, js-yaml>=4.2.0integrations/vercel-ai/typescript>=0.28.1legacy/src/go.modv5.2.2→v5.2.4The adk OpenTelemetry fix
@google/adk@1.2.0is already the latest release — it can't be bumped further. Its tree pulled a split set of@opentelemetrystable packages: both2.8.0(patched) and2.1.0(vulnerable to GHSA-8988-4f7v-96qf,@opentelemetry/core <2.8.0). All 11 advisories trace to that singlecore <2.8.0. Forcing the stable quartet to2.8.0— the version@google/adkalready runs with elsewhere in its own tree — dedupes the straggler2.1.0copies and clears every advisory, with no@google/adkdowngrade.Validation (independently re-verified, not agent self-reports)
npm audit→ 0; build ✅,tsc --noEmit✅, 50 tests ✅;@google/adkimports + initializes telemetry cleanly under the OTel override (runtime smoke test).npm ciin sync ✅ (2 low non-Dependabot @ai-sdk advisories remain).npm audit→ 0.go build+go vet✅ (module has no tests).vitest2→3 needed no test or config changes. Onlypackage.json/package-lock.json(andgo.mod/go.sum) changed — no source edits.🤖 Generated with Claude Code