Skip to content

chore(push): override protobufjs to ^7.6.4 (Dependabot)#7778

Merged
ar2rsawseen merged 2 commits into
masterfrom
chore/dependabot-protobufjs-override
Jun 26, 2026
Merged

chore(push): override protobufjs to ^7.6.4 (Dependabot)#7778
ar2rsawseen merged 2 commits into
masterfrom
chore/dependabot-protobufjs-override

Conversation

@ar2rsawseen

@ar2rsawseen ar2rsawseen commented Jun 26, 2026

Copy link
Copy Markdown
Member

What

Adds an npm overrides entry pinning the transitive protobufjs dependency in the push plugin to ^7.6.4, and regenerates plugins/push/package-lock.json.

Why

Resolves the two runtime-facing Dependabot alerts on the push plugin:

  • high — protobufjs: DoS via unbounded Any expansion during JSON conversion (vulnerable <= 7.6.0)
  • medium — protobufjs: schema-derived names can shadow runtime-significant properties (vulnerable <= 7.6.2)

protobufjs is pulled in transitively via firebase-admin -> @google-cloud/firestore -> google-gax / @grpc. Those parents require protobufjs ^7, so 7.6.4 is API-compatible. The only lockfile changes are protobufjs itself and its own sub-deps (@protobufjs/*, long) — no unrelated churn.

Scope note

The other 4 open Dependabot alerts are not addressed here by design — they are dev/test-only (js-yaml, @babel/core) or build-time native-module tooling (tar, no 6.x backport / major-version jump). Those are intended to be dismissed as no-production-impact / tolerable-risk rather than patched.

Testing

CI's test-api-plugins job installs the push plugin (honoring the new override via npm install) and runs the full push suite via npx grunt mochaTest — letting CI verify protobufjs 7.6.4 doesn't break FCM compile/worker paths.

🤖 Generated with Claude Code

Bumps the transitive protobufjs dependency (pulled in via
firebase-admin -> @google-cloud/firestore -> google-gax/@grpc)
from 7.5.x to 7.6.4 through an npm override, resolving:

- GHSA high: DoS via unbounded Any expansion during JSON conversion
- GHSA medium: schema-derived names can shadow runtime properties

Parents require protobufjs ^7, so 7.6.4 is API-compatible. Only
protobufjs and its own sub-deps (@protobufjs/*, long) change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 26, 2026 12:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 push plugin’s Node dependency resolution to force a patched protobufjs version, addressing Dependabot-reported vulnerabilities in a transitive dependency chain (via firebase-admin).

Changes:

  • Add an npm overrides entry in plugins/push/package.json to require protobufjs ^7.6.4.
  • Regenerate plugins/push/package-lock.json so the resolved protobufjs version becomes 7.6.4 and related sub-deps align (@protobufjs/*, long).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
plugins/push/package.json Adds an npm override to ensure protobufjs resolves to ^7.6.4 for the push plugin install.
plugins/push/package-lock.json Updates the lockfile to resolve protobufjs@7.6.4 and associated dependency graph changes (including long).
Files not reviewed (1)
  • plugins/push/package-lock.json: Generated file

@ar2rsawseen ar2rsawseen merged commit dfc8de2 into master Jun 26, 2026
10 checks passed
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