Skip to content

fix(security): bump hibernate-validator to 8.0.6.Final and java-jwt to 4.6.2 - #35496

Closed
karanh37 wants to merge 2 commits into
mainfrom
security/hibernate-validator-8.0.6.Final
Closed

karanh37 wants to merge 2 commits into
mainfrom
security/hibernate-validator-8.0.6.Final

Conversation

@karanh37

@karanh37 karanh37 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Two medium-severity security dependency bumps (combines #35497 into this PR):

  1. org.hibernate.validator:hibernate-validator 8.0.1.Final → 8.0.6.Final in openmetadata-service and openmetadata-k8s-operator.
  2. com.auth0:java-jwt 4.4.0 → 4.6.2 in the root pom.xml, openmetadata-sdk, and openmetadata-integration-tests.

Both were surfaced by the Collate security scan (collate-server-dep-scan) on 2026-10-15. The OpenMetadata scanner did not flag them independently, because OSS Snyk runs at --severity-threshold=high and does not report mediums.


1. hibernate-validator 8.0.1.Final → 8.0.6.Final

Advisory: CVE-2026-93879 / SNYK-JAVA-ORGHIBERNATEVALIDATOR-20877468. Expression Language injection through unescaped message parameters (upstream HV-2256).

SNYK-JAVA-ORGHIBERNATEVALIDATOR-20877468 org.hibernate.validator:hibernate-validator 8.0.1.Final medium
Expression Language Injection  fixedIn=['9.2.0.Beta1']  vulnerable=[0,9.2.0.Beta1)

Confirmed at 8.0.1.Final in openmetadata-service/pom.xml:95 and openmetadata-k8s-operator/pom.xml:97.

Why 8.0.6.Final and not 9.2.0.Beta1: Snyk lists only the 9.2 beta as a fix. The fix commit 870485e384 ("HV-2256 Escape message parameters by default") is an ancestor of the 8.0.6.Final tag: GitHub compare 8.0.6.Final...870485e384 returns ahead=0, behind=3. 9.x is a new major (Jakarta Validation 3.1 / EE 11) and has only beta releases. Snyk will probably keep flagging 8.0.6.Final until its advisory data lists the 8.0.x backport.

What was verified

  • 8.0.6.Final is on Maven Central. Its POM keeps jakarta.validation-api 3.0.2, the version Dropwizard 5 manages.
  • mvn -o dependency:tree on openmetadata-service and on openmetadata-k8s-operator resolves hibernate-validator:8.0.6.Final with jakarta.validation-api:3.0.2 in both modules.
  • The only direct API use is in OpenMetadataApplication: new ResourceBundleMessageInterpolator(new PlatformResourceBundleLocator(String)). javap against the 8.0.6.Final jar shows both constructors exist.
  • This is a patch bump within 8.0.x. Dropwizard 5.0.2 manages 8.0.3.Final.

2. java-jwt 4.4.0 → 4.6.2

Advisory: CVE-2026-85473 / GHSA-cg7w-5cc2-f2xm / SNYK-JAVA-COMAUTH0-20937619. Timestamp claims outside the valid range kill token-parsing threads (DoS). Vulnerable range: [4.0.0,4.6.2). java-jwt parses bearer tokens on the authentication path.

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)

Manifests touched

  • pom.xml: java-jwt.version 4.4.0 → 4.6.2. openmetadata-service uses this property.
  • openmetadata-sdk/pom.xml: jwt.version 4.4.0 → 4.6.2.
  • openmetadata-integration-tests/pom.xml: the hardcoded 4.4.0 (test scope) now uses ${java-jwt.version}, so it stays in step with the root property.

What was verified

  • 4.6.2 is on Maven Central and is the latest 4.x release, so this stays on the same major.
  • Public API: I compared javap -public output for every non-impl class in the 4.4.0 and 4.6.2 jars. Public members went from 200 to 209 and none were removed.
  • Jackson: 4.6.2 declares jackson-databind 2.22.3 at runtime, but OM's dependencyManagement pins 2.18.11 (confirmed with mvn -o -pl openmetadata-sdk dependency:tree). I extracted all 49 Jackson method references from the 4.6.2 bytecode and checked each against the 2.18.11 jars. All of them exist; three (MapperBuilder.build/configure, ObjectMapper.registerModule) are inherited methods.
  • mvn -o -pl openmetadata-sdk compile passes against 4.6.2. That compile includes JwtAuthProvider, which uses JWT, JWTCreator and Algorithm.

What was NOT tested

  • I did not compile openmetadata-service, and I ran no unit tests or ITs. A local offline compile failed on errors unrelated to this change: a stale local openmetadata-spec SNAPSHOT, and unshaded es.* packages that need a package build first. None of the compile errors referenced com.auth0 or org.hibernate.validator, but that does not prove the service compiles. CI will be the first full service compile.
  • HV-2256 changes behaviour: message parameters are now escaped by default. I did not check whether any custom constraint message relies on EL evaluation of parameter values.
  • Running java-jwt 4.6.2 on Jackson 2.18.11 instead of the declared 2.22.3 is checked only at the bytecode-reference level. I did not run a token sign/verify.
  • No login or JWT auth E2E test, no Docker build, no Snyk rescan, and no k8s-operator runtime test.

Type of change:

  • Bug fix (security dependency bumps)

Checklist:

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

🤖 Generated with Claude Code

CVE-2026-93879 (SNYK-JAVA-ORGHIBERNATEVALIDATOR-20877468): EL injection via
unescaped message parameters. The fix (HV-2256, 870485e384 'Escape message
parameters by default') is contained in 8.0.6.Final; Snyk only lists
9.2.0.Beta1. 8.0.6.Final keeps jakarta.validation-api 3.0.2.
@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
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.
@karanh37 karanh37 changed the title fix(security): bump hibernate-validator to 8.0.6.Final fix(security): bump hibernate-validator to 8.0.6.Final and java-jwt to 4.6.2 Oct 16, 2026
@karanh37 karanh37 mentioned this pull request Oct 16, 2026
2 of 3 tasks
@gitar-bot

gitar-bot Bot commented Oct 16, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Validator's new escaping and the java-jwt upgrade could change constraint-message rendering or token validation behavior, affecting clients that rely on prior semantics.

Bumps hibernate-validator from 8.0.1.Final to 8.0.6.Final in openmetadata-service and openmetadata-k8s-operator to address the medium-severity Expression Language injection advisory CVE-2026-93879. 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 #35291.

@karanh37 karanh37 closed this Oct 16, 2026
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