Skip to content

fix(security): bump java-jwt to 4.6.2 - #35497

Closed
karanh37 wants to merge 1 commit into
mainfrom
security/java-jwt-4.6.2
Closed

karanh37 wants to merge 1 commit into
mainfrom
security/java-jwt-4.6.2

Conversation

@karanh37

Copy link
Copy Markdown
Contributor

Describe your changes:

Bumps com.auth0:java-jwt from 4.4.0 → 4.6.2.

Advisory: CVE-2026-85473 / GHSA-cg7w-5cc2-f2xm / SNYK-JAVA-COMAUTH0-20937619. Out-of-range timestamp claims kill token-parsing threads (DoS); vulnerable [4.0.0,4.6.2). Severity: medium. java-jwt parses bearer tokens on the authentication path.

Raw scanner finding (Collate collate-server-dep-scan):

SNYK-JAVA-COMAUTH0-20937619 com.auth0:java-jwt 4.4.0 medium
Improper Handling of Exceptional Conditions  fixedIn=['4.6.2']  vulnerable=[4.0.0,4.6.2)

Surfaced by the Collate security scan on 2026-10-15; the OpenMetadata scanner did not flag this independently (OSS Snyk runs at --severity-threshold=high, so mediums are not reported). Verified present in pom.xml:164 (java-jwt.version) at 4.4.0, fix 4.6.2.

Manifests touched

  • pom.xml: java-jwt.version 4.4.0 → 4.6.2. This version is used by openmetadata-service.
  • openmetadata-sdk/pom.xml: jwt.version 4.4.0 → 4.6.2.
  • openmetadata-integration-tests/pom.xml: the literal 4.4.0 (test scope) now points at ${java-jwt.version}, so it stays in lockstep.

What was verified

  • 4.6.2 is on Maven Central and is the latest 4.x. Same major.
  • Public API: compared javap -public over every non-impl class in the 4.4.0 and 4.6.2 jars. 200 → 209 members, 0 removed.
  • Jackson: 4.6.2 declares jackson-databind 2.22.3 at runtime, but OM's dependencyManagement keeps 2.18.11 (mvn -o -pl openmetadata-sdk dependency:tree confirms). I extracted all 49 Jackson method refs from the 4.6.2 bytecode and checked each against the 2.18.11 jars. All exist; three are inherited (MapperBuilder.build/configure, ObjectMapper.registerModule).
  • mvn -o -pl openmetadata-sdk compile passes against 4.6.2. That includes JwtAuthProvider, which uses JWT, JWTCreator and Algorithm.

What was NOT tested

  • No compile of openmetadata-service, and no unit tests or ITs. A local offline compile could not get past unrelated errors: a stale local openmetadata-spec SNAPSHOT, and unshaded es.* packages without a package build. No compile error referenced com.auth0, but that is not proof. CI is the first full service compile.
  • Runtime with Jackson 2.18.11 instead of the declared 2.22.3 is only checked at the bytecode-reference level; no token sign/verify was run.
  • No login / JWT auth E2E, no Docker build, and no Snyk rescan.

Type of change:

  • Bug fix (security dependency bump)

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation> (no linked Shipping issue; needs a maintainer to link one or apply skip-pr-checks)

🤖 Generated with Claude Code

CVE-2026-85473 / GHSA-cg7w-5cc2-f2xm (SNYK-JAVA-COMAUTH0-20937619): out-of-range
timestamp claims kill token-parsing threads; vulnerable [4.0.0,4.6.2).
Bumps the root java-jwt.version and the SDK's jwt.version, and points the
integration-tests literal at the shared property.
@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Oct 15, 2026
@gitar-bot

gitar-bot Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Upgrading java-jwt changes JWT parsing on the authentication path, which could alter token acceptance or disrupt logins if behavior differs.

Bumps com.auth0:java-jwt from 4.4.0 to 4.6.2 across pom.xml, openmetadata-sdk/pom.xml, and openmetadata-integration-tests/pom.xml to fix the medium-severity DoS advisory CVE-2026-85473 (out-of-range timestamp claims). No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@karanh37

Copy link
Copy Markdown
Contributor Author

Combined into #35496.

@karanh37

Copy link
Copy Markdown
Contributor Author

Combined into #35291 (not #35496).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant