Repository navigation
fix: Generate Java protos with protoc matching protobuf runtime - #390
Merged
Merged
Conversation
protoc.version was pinned to 3.12.2 while protobuf-java runtime is 3.25.5. protoc < 21.7 emits makeExtensionsImmutable() in generated code, which the 3.25.5 runtime flags with "Vulnerable protobuf generated type in use" (and is vulnerable to a DoS). Tie protoc.version to protobuf.version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vanitabhagwat
approved these changes
Nov 12, 2026
| <protoc.version>3.12.2</protoc.version> | ||
| <protobuf.version>3.25.5</protobuf.version> | ||
| <protoc.version>${protobuf.version}</protoc.version> | ||
| <protobuf.version>3.25.8</protobuf.version> |
Collaborator
There was a problem hiding this comment.
The PR description still says 3.25.5 throughout, but this bumps the runtime (and now protoc) to 3.25.8. Could you update the description to match?
Manisha4
approved these changes
Nov 12, 2026
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
Change
protoc.versioninjava/pom.xmlfrom3.12.2to${protobuf.version}(3.25.5).Why
Services that use the Feast Java artifacts log
Vulnerable protobuf generated type in useforValueProto(and other generated types).protocolder than 21.7 putsmakeExtensionsImmutable()calls in generated code. Theprotobuf-java3.25.5 runtime detects those calls and logs this warning, because the old generated code is open to a denial-of-service issue. The generator (protoc3.12.2) and the runtime (3.25.5) were set to different versions. Tying the generator to the runtime version fixes this now and keeps the two from drifting apart again.Testing
mvn clean test-compilepasses for all modules (datatypes,serving,serving-client).makeExtensionsImmutable; after regenerating, none do.ValueProto.javanow says it was generated byProtobuf Java Version: 3.25.5.mvn verifyhas not been run.Related
eg-feast's
package_protos/pom.xml(theeg-feast-protosartifact) has the same pin, fixed in eg-ai-platform/eg-feast#110. Services that use these jars need to move to the newly published version for the warning to stop.