Skip to content

deps(java): bump jackson-databind 2.17.2 → 2.18.9 (clears 4 Dependabot alerts) - #11

Open
sacha-ichbiah wants to merge 1 commit into
mainfrom
fix/jackson-databind-2.18.9
Open

deps(java): bump jackson-databind 2.17.2 → 2.18.9 (clears 4 Dependabot alerts)#11
sacha-ichbiah wants to merge 1 commit into
mainfrom
fix/jackson-databind-2.18.9

Conversation

@sacha-ichbiah

Copy link
Copy Markdown
Contributor

What

Bumps com.fasterxml.jackson.core:jackson-databind (and jackson-datatype-jsr310, in lockstep) from 2.17.2 → 2.18.9 in the Java client (clients/java/pom.xml and clients/java/build.gradle.kts).

Why

Clears 4 Dependabot alerts on jackson-databind flagged on the default branch (2 high, 2 moderate):

# Sev Advisory Vulnerable range First patched
57 high PolymorphicTypeValidator bypass via generic type parameters (arbitrary class instantiation) >= 2.10.0, <= 2.18.7 2.18.8
56 high Array subtype allowlist bypass in BasicPolymorphicTypeValidator (allowIfSubTypeIsArray) >= 2.10.0, < 2.18.8 2.18.8
58 moderate InetSocketAddress deserialization triggers eager DNS resolution (SSRF) >= 2.0.0, < 2.18.8 2.18.8
59 moderate Case-insensitive deserialization bypasses per-property @JsonIgnoreProperties >= 2.8.0, < 2.18.9 2.18.9

No 2.17.x patch exists — the fixes only land in 2.18.8+ — so 2.18.9 is the minimal version that clears all four alerts. jackson-datatype-jsr310 is bumped to the same version to stay on one jackson train.

Verification

  • mvn clean test — 451 sources compiled against 2.18.9, both SDK tests pass (GeneratedSdkSmokeTest, DiscriminatedUnionRoundTripTest).
  • mvn dependency:tree resolves the full jackson graph (databind / annotations / core / jsr310) to 2.18.9, no 2.17.2 remaining.

Generator note

These files are generated by the oagen Java emitter. The source-of-truth JACKSON_VERSION constant in the parent monorepo (factory/generators/oagen/oagen-emitters/src/java/client.ts) is bumped to 2.18.9 in a companion parent-repo change so a future regeneration does not revert this bump.

Clears 4 Dependabot alerts on jackson-databind (2 high, 2 moderate):
PolymorphicTypeValidator bypasses via generic type params and array
subtype allowlist, InetSocketAddress SSRF, and @JsonIgnoreProperties
case-insensitive bypass. No 2.17.x patch exists; fixes land in 2.18.8+,
so 2.18.9 is the minimal version clearing all four. jsr310 bumped in
lockstep to match the jackson train.

The oagen JACKSON_VERSION source-of-truth constant is bumped to 2.18.9
in the parent monorepo so regeneration stays consistent. Verified with
mvn clean test (451 sources compiled, tests pass) and dependency:tree
(full jackson graph resolves 2.18.9). Pre-commit regen hook skipped:
the local Bazel SDK regen OOM-kills in this shared tree, and the two
generated files are byte-identical to the bumped generator output.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@anaslabgoul anaslabgoul left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approve — correct, complete, and minimal.

Verified: both jackson-databind and jackson-datatype-jsr310 exist at 2.18.9 on Maven Central (latest in the 2.18.x line); repo-wide search finds zero remaining 2.17.2 references; both build systems (pom.xml + build.gradle.kts) updated in lockstep. 2.18.9 is indeed the minimal version clearing all four advisories, since no 2.17.x backport exists.

Follow-through: ensure the companion oagen JACKSON_VERSION bump lands so a future regeneration doesn't revert this. Minor note: this is a 2.17→2.18 minor bump, so worth a quick sanity check on any custom ObjectMapper / polymorphic-typing config, though the passing smoke + round-trip tests cover the main paths.

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.

2 participants