Skip to content

fix(deps): bump jackson-bom 2.21.4 → 2.21.5 (@JsonView bypass CVEs)#93

Merged
WolfTasks merged 1 commit into
mainfrom
worktree-jackson-databind-2215-cve
Jul 23, 2026
Merged

fix(deps): bump jackson-bom 2.21.4 → 2.21.5 (@JsonView bypass CVEs)#93
WolfTasks merged 1 commit into
mainfrom
worktree-jackson-databind-2215-cve

Conversation

@WolfTasks

Copy link
Copy Markdown
Owner

Problem

The Dependabot security update for com.fasterxml.jackson.core:jackson-databind has been failing repeatedly (run 29959693576) with:

| security_update_dependency_not_found | {} |

Root cause: jackson-databind is a transitive-only dependency here (pulled via jackson-module-kotlin / the Spring Boot 3.5.16 BOM). Dependabot's security-update job is scoped to dependency-type: direct, so it cannot find jackson-databind as a direct dependency to patch → the job errors out. This will keep recurring while the alerts are open.

Two open Dependabot alerts, both medium, both now patched in 2.21.5:

The stale in-code note claimed "2.21.5 unreleased" — but 2.21.5 has since shipped to Maven Central (verified HTTP 200).

Fix

Override the BOM-managed jackson-bom.version (same pattern already used for commons-lang3, logback, postgresql) so the whole Jackson family moves to 2.21.5 together, and regenerate the dependency lockfile.

  • backend/build.gradle.kts: extra["jackson-bom.version"] = "2.21.5" + updated comment
  • backend/gradle.lockfile: jackson-bom, jackson-core, jackson-databind, jackson-module-kotlin, jackson-datatype-, jackson-dataformat- → 2.21.5

This remediates both CVEs and clears the recurring Dependabot failure once the default-branch dependency graph is rescanned.

Verification

  • ./gradlew dependencies --write-locks — lockfile regenerated; no jackson entry remains on 2.21.4
  • ./gradlew compileKotlin compileTestKotlin — ✅ (patch bump, no source changes)
  • Full test suite + 3 CI gates run here (Docker/Testcontainers unavailable locally)

🤖 Generated with Claude Code

Dependabot's security update for jackson-databind was failing with
`security_update_dependency_not_found`: jackson-databind is a
transitive-only dependency (via jackson-module-kotlin / the Spring Boot
3.5.16 BOM), so the direct-only security update could not patch it.

2.21.5 has now shipped to Maven Central and is the first patched version
for both open alerts:
  - GHSA-mhm7-754m-9p8w  (@JSONVIEW bypass, EXTERNAL_PROPERTY creators)
  - GHSA-5gvw-p9qm-jgwh / CVE-2026-59889 (@JSONVIEW bypass, @JsonUnwrapped)

Override the BOM-managed `jackson-bom.version` so the whole Jackson
family moves to 2.21.5 together, and regenerate the dependency lockfile.
This remediates both CVEs and clears the recurring Dependabot failure.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@WolfTasks
WolfTasks merged commit e52f4b6 into main Jul 23, 2026
11 checks passed
@WolfTasks
WolfTasks deleted the worktree-jackson-databind-2215-cve branch July 23, 2026 20:21
WolfTasks pushed a commit that referenced this pull request Jul 23, 2026
Backend internationalization (#16, all three phases) + jackson-databind
security patch.

- #16 Backend i18n: API errors, emails (subject+body) and in-app
  notifications are now localized de/en in the recipient's language via
  Spring MessageSource (English fallback). Phases 1-2 API-error sweep,
  Phase 3 emails + notifications; guarded by 3 CI gates.
- Security: jackson-bom 2.21.4 -> 2.21.5 (#93) fixes @JSONVIEW bypass
  CVEs GHSA-mhm7-754m-9p8w and GHSA-5gvw-p9qm-jgwh / CVE-2026-59889.
- Maintenance: backend-deps #89 (postgresql 42.7.12), actions #88.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
WolfTasks pushed a commit that referenced this pull request Jul 23, 2026
- #16 backend i18n: 🟩 GEMERGT → ✅ AUSGELIEFERT (Release v1.0.15).
- New M2 row: jackson-databind 2.21.5 @JsonView-bypass CVE fix (PR #93)
  + Dependabot batches #88/#89, shipped in v1.0.15.
- Resolve the stale "jackson deferred, no patch" note in the #12 section
  (2.21.5 shipped; BOM override; alerts #80/#81 closed).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.

1 participant