Upgrade Jackson dependency to a safe version#703
Open
Divyansh-db wants to merge 2 commits intomainfrom
Open
Conversation
|
If integration tests don't run automatically, an authorized user can run them manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
parthban-db
approved these changes
Mar 13, 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.
Summary
Upgrades Jackson from 2.15.2 to 2.18.6 to fix GHSA-72hv-8253-57qq (High severity, CVSS 8.7), a denial-of-service
vulnerability in jackson-core's async JSON parser.
Motivation
The async JSON parser in jackson-core versions prior to 2.18.6 does not enforce the maxNumberLength constraint
(default: 1000 characters), while the synchronous parser does. This allows an attacker to submit JSON with
arbitrarily long numeric values, causing memory and CPU exhaustion — particularly in reactive/non-blocking
applications (e.g. Spring WebFlux). This is classified as CWE-770 (Allocation of Resources Without Limits or
Throttling).
The SDK currently pins Jackson at 2.15.2, which falls in the vulnerable range (2.0.0–2.18.5). All consumers of the
SDK inherit this version, so the fix must be applied upstream here rather than overridden at each consumer.
Changes
jackson-annotations, jackson-datatype-jsr310, jackson-datatype-guava). Adds jackson-datatype-jdk8 as a new
dependency.
longer serializes/deserializes java.util.Optional types by default — the SDK's Request class uses Optional
for redirectionBehavior, which fails without this module.
Test plan
serialization of Request objects containing Optional fields.
NO_CHANGELOG=true