Skip to content

fix: resolve critical and high-severity dependency vulnerabilities monorepo-wide#8339

Open
shivanee-p wants to merge 13 commits into
mainfrom
shivaneep-security-vulnerability-fixes
Open

fix: resolve critical and high-severity dependency vulnerabilities monorepo-wide#8339
shivanee-p wants to merge 13 commits into
mainfrom
shivaneep-security-vulnerability-fixes

Conversation

@shivanee-p
Copy link
Copy Markdown
Contributor

We identified 19 distinct vulnerable dependencies in our monorepo, ranging from Critical to Low severity. The highest priority ones are addressed in this PR.

Fixes #8134

more information can be found via b/514928073

@shivanee-p shivanee-p requested review from a team as code owners May 21, 2026 05:26
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates numerous dependencies and introduces overrides blocks across the monorepo to manage transitive dependency versions. The review identifies several critical issues, including the use of non-existent version numbers for typescript, @opentelemetry/sdk-node, and @types/uuid, which will cause installation failures. Additionally, the feedback warns that forcing ESM-only dependency versions in a CommonJS project will lead to runtime errors and notes that a resolutions field is required for Yarn compatibility. Finally, the reviewer suggests consolidating redundant configuration into the root package.json for better maintainability.

Comment thread package.json Outdated
Comment thread handwritten/logging/package.json Outdated
Comment thread package.json
Comment thread handwritten/logging/package.json Outdated
Comment thread core/packages/tools/package.json
Comment thread handwritten/bigquery-storage/package.json
@shivanee-p
Copy link
Copy Markdown
Contributor Author

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates and synchronizes dependencies across the monorepo, notably upgrading protobufjs to version 7.5.8 and adding version overrides for several core packages in the root package.json. It also downgrades uuid to version 9.0.1 in multiple modules. Feedback indicates that removing @types/uuid during the uuid downgrade will break TypeScript compilation, as version 9 lacks built-in type definitions; these types must be retained to ensure build stability.

Comment thread core/paginator/package.json
Comment thread handwritten/logging/package.json
Comment thread packages/google-cloud-vision/package.json
@shivanee-p
Copy link
Copy Markdown
Contributor Author

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request synchronizes and updates dependencies across the monorepo, primarily focusing on protobufjs and uuid versions. It introduces root-level overrides and resolutions for several packages to address potential vulnerabilities. Review feedback indicates that these overrides are not consistently applied across all subpackage lockfiles, as evidenced by minimatch and uuid resolutions in nested dependencies. Furthermore, a version mismatch for uuid was identified in the pubsub package, and the decision to downgrade uuid to a deprecated version (v9) is questioned, with a recommendation to upgrade to v11 instead.

Comment thread package.json
Comment thread handwritten/pubsub/package.json Outdated
Comment thread package.json
@shivanee-p shivanee-p added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 21, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 21, 2026
@shivanee-p shivanee-p force-pushed the shivaneep-security-vulnerability-fixes branch from 10ba8a4 to 660b6e5 Compare May 21, 2026 15:53
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.

Security Vulnerabilities in "uuid" & "fast-xml-parser" transitive dependencies for @google-cloud/storage latest version 7.19.0

2 participants