Repository navigation
fix(deps): bump jackson-databind to 2.21.7 to fix CVE-2026-54512/54513 - #95
Merged
Merged
Conversation
Our own direct pin (2.21.0) falls in the vulnerable range (>=2.19.0, <2.21.4) for both CVEs — a PolymorphicTypeValidator bypass allowing arbitrary class instantiation during deserialization. Fixed upstream in 2.21.4; bumped to the latest 2.21.x patch (2.21.7). Dependabot's PR #89 targeted json-schema-validator 1.4.3 -> 3.0.7 instead, but that dependency is optional and its transitive jackson version is overridden by our direct pin anyway (Maven dependency mediation), so bumping it doesn't touch the actually-vulnerable artifact. It also doesn't build: 3.0.7 replaced the whole JsonSchemaFactory/ValidationMessage API with a jackson 3.x (tools.jackson) rewrite, which would pull in a second, incompatible Jackson major version. Bumping our own jackson-databind pin fixes the CVEs directly without any of that. 547 tests green. Closes #94. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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 this does
Fixes #94. Bumps our direct
jackson-databindpin from2.21.0to2.21.7.Root cause
Both CVEs are in
jackson-databinditself (aPolymorphicTypeValidatorbypass allowing arbitrary class instantiation during deserialization), with vulnerable range>= 2.19.0, < 2.21.4. Our own direct pin,2.21.0, falls inside that range. Fixed upstream in2.21.4; this bumps to the latest2.21.xpatch,2.21.7.Why not PR #89 (json-schema-validator 1.4.3 → 3.0.7)
Dependabot's PR targets the wrong dependency:
json-schema-validatoris optional and only used bySchemaValidator. Its own transitive jackson version is overridden by our direct pin anyway (Maven nearest-wins mediation), so bumping it never touched the actually-vulnerable artifact in our build.3.0.7replaced theJsonSchemaFactory/JsonSchema/ValidationMessageAPI with a full rewrite ontotools.jackson(Jackson 3.x) — a different Jackson major line from thecom.fasterxml.jackson2.x we use everywhere else. Taking it would mean carrying two incompatible Jackson majors just for schema validation.Recommend closing #89 in favor of this.
Testing
mvn dependency:treeconfirms resolvedjackson-databindis now2.21.7(was2.21.0).🤖 Generated with Claude Code