Skip to content

Conversation

@nthmost-orkes
Copy link
Contributor

Summary

Upgrades protobuf from 3.25.5 to 4.33.0 to address security vulnerability (CVE announced Jan 2025).

Changes

  • Update protobuf-java from 3.25.5 to 4.33.0 (runtime)
  • Update protobuf-gradle-plugin from 0.8.19 to 0.9.5
  • Use protoc 3.25.5 for code generation (maintains gRPC 1.73.0 compatibility)
  • Fix hardcoded protobuf version in annotations-processor to use ${revProtoBuf} variable

Technical Notes

This upgrade uses the recommended approach for protobuf 3.x → 4.x migration:

  • Runtime: protobuf-java 4.33.0 (gets security fixes)
  • Code generation: protoc 3.25.5 (maintains backward compatibility)

See: grpc/grpc-java#12246

Testing

  • ✅ Full build passes
  • ✅ All gRPC module tests pass
  • ✅ Protobuf code regenerated successfully

Closes

Part of #640 (Epic: Dependabot PR Cleanup and Security Updates)

- Update protobuf-java from 3.25.5 to 4.33.0 (addresses CVE announced Jan 2025)
- Update protobuf-gradle-plugin from 0.8.19 to 0.9.5
- Use protoc 3.25.5 for code generation (maintains gRPC compatibility)
- Fix hardcoded protobuf version in annotations-processor

Closes #644
Closes #232
Closes #231
@nthmost-orkes
Copy link
Contributor Author

Testing locally with a couple different configurations -- will merge tomorrow if no issues.

@nthmost-orkes nthmost-orkes merged commit aa7de92 into main Dec 5, 2025
9 checks passed
@nthmost-orkes nthmost-orkes deleted the upgrade-protobuf-4.33.0 branch December 5, 2025 20:49
@nthmost-orkes nthmost-orkes added the dependencies Pull requests that update a dependency file label Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade protobuf to 4.33.0 (major version, security vulnerability)

3 participants