Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update @grpc/proto-loader dep to address protobufjs security issue #6442

Merged
merged 9 commits into from
Jul 19, 2022

Conversation

hsubox76
Copy link
Contributor

@hsubox76 hsubox76 commented Jul 15, 2022

There is a security issue with versions of the protobufjs dependency lower than 6.11.3: GHSA-g954-5hwp-pp24

Firestore has a direct dependency on protobufjs which was already previously updated to 6.11.3. However, Firestore also has a dependency on @grpc/proto-loader which had a dependency on an older version of protobufjs. Upgrading our @grpc/proto-loader dependency to the most recent version updates its protobufjs dependency to 6.11.3 as well.

Also updated firebase-tools and firebase-admin deps, which have transitive dependencies on protobufjs. This removes protobufjs 6.11.2 completely from yarn.lock.

Tested by npm packing this branch and installing it into a test project - no traces of protobufjs 6.11.3.

Had to tinker with rules-unit-testing a bit to make it work with the newer firebase-tools.

Fixes #6438

@changeset-bot
Copy link

changeset-bot bot commented Jul 15, 2022

🦋 Changeset detected

Latest commit: 029a4b4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@firebase/firestore Patch
@firebase/rules-unit-testing Patch
firebase Patch
@firebase/firestore-compat Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 15, 2022

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 15, 2022

Copy link
Contributor

@dwyfrequency dwyfrequency left a comment

Choose a reason for hiding this comment

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

LGTM

@hsubox76 hsubox76 merged commit 1703bb3 into master Jul 19, 2022
@hsubox76 hsubox76 deleted the ch-protobufjs branch July 19, 2022 17:02
@google-oss-bot google-oss-bot mentioned this pull request Jul 19, 2022
@firebase firebase locked and limited conversation to collaborators Aug 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prototype Pollution in protobufjs
4 participants