Skip to content

fix(security): bump io.kubernetes:client-java to 25.0.1 (CVE-2026-15687) - #31342

Merged
mohityadav766 merged 3 commits into
mainfrom
fix-snyk-k8s-client-java
Aug 11, 2026
Merged

mohityadav766 merged 3 commits into
mainfrom
fix-snyk-k8s-client-java

Conversation

@mohityadav766

Copy link
Copy Markdown
Member

What

Bumps io.kubernetes:client-java 24.0.0 → 25.0.1 to clear CVE-2026-15687 (SNYK-JAVA-IOKUBERNETES-18313175), and pins com.squareup.okhttp3:logging-interceptor to 4.12.0 so the bump does not drag okhttp 5 onto the classpath.

Directory Traversal in copyDirectoryFromPod when enableTarCompressing=false. CVSS 4.8, vulnerable range [,25.0.1). We never call Copy, so this is not exploitable here — but openmetadata-dist ships the jar, so the vulnerable version reaches OSS installs and turns up in downstream scans.

Why our own Snyk report is green on this. Our scan applies a high severity floor, and this finding is medium — so all 20 of our pom.xml manifests report ok: true while shipping the vulnerable version. It surfaced in the Collate scan, which includes medium.

Why the logging-interceptor pin

client-java 25.x declares logging-interceptor 5.1.0, and okhttp 5 relocated the okhttp3.* classes out of okhttp into a new okhttp-jvm artifact. Root dependencyManagement already pins okhttp to 4.12.0, so without a matching pin, okhttp-jvm:5.1.0 joins okhttp:4.12.0 on the classpath and okhttp3.* ends up split across two jars, resolved by classpath order — a silent, order-dependent hazard in the shipped distribution.

okhttp 4.12.0 satisfies client-java 25.0.1: its bytecode references the exact same 118 okhttp3/okio members as 24.0.0 does today — zero added, zero removed. Upstream's move to okhttp 5 is a declared-dependency bump, not an API requirement. The pin should be dropped only as part of a real okhttp 5 migration.

Verification

  • Resolved classpath is surgical. Across the 596 artifacts openmetadata-service + openmetadata-k8s-operator resolve, the only three that move are client-java, client-java-api and client-java-proto. No okhttp-jvm; okhttp stays 4.12.0, logging-interceptor 4.12.0, kotlin-stdlib 1.8.21.
  • Only API removal in 25.0.1 is unused. I diffed the public API of all 43 io.kubernetes types we import — including CoreV1Api, BatchV1Api, CustomObjectsApi, ApiextensionsV1Api, VersionApi, ClientBuilder, Config and Yaml — between 24.0.0 and 25.0.1. The only removed public members anywhere in that surface are V1ResourceRequirements.claims* and the V1ResourceClaim type (k8s 1.34 DRA rework). Every V1ResourceRequirements call site here (K8sPipelineClient, OMJob, K8sJobUtilsTest) uses only .requests()/.limits(), and there are zero V1ResourceClaim references in the repo.
  • openmetadata-service and openmetadata-k8s-operator build against 25.0.1.

Related

Collate carries the same bump: open-metadata/openmetadata-collate#5663 (main) and #5664 (2.0). Collate's root dependencyManagement pins client-java for its own modules, so it was already covered — this PR fixes it at the source so OSS installs are too, and so the Collate pin stops being a silent override of a vulnerable upstream version.

🤖 Generated with Claude Code

…026-15687)

Directory Traversal in copyDirectoryFromPod when enableTarCompressing=false
(SNYK-JAVA-IOKUBERNETES-18313175, CVSS 4.8). Vulnerable range [,25.0.1).

openmetadata-dist ships client-java, so this reaches OSS installs. It does not
show up in our own Snyk report because that scan applies a high severity floor
and this finding is medium.

Also pins com.squareup.okhttp3:logging-interceptor to 4.12.0, next to the okhttp
pin already in root dependencyManagement. client-java 25.x declares
logging-interceptor 5.1.0, and okhttp 5 relocated the okhttp3.* classes out of
okhttp into a new okhttp-jvm artifact — so without the pin, okhttp-jvm 5.1.0
joins the pinned okhttp 4.12.0 on the classpath and okhttp3.* ends up split
across two jars, resolved by classpath order. okhttp 4.12.0 satisfies
client-java 25.0.1: its bytecode references the exact same 118 okhttp/okio
members as 24.0.0 does today, zero added and zero removed, so upstream's move to
okhttp 5 is a declared-dependency bump rather than an API requirement.

Verified:
- openmetadata-service + openmetadata-k8s-operator resolve 596 artifacts; the
  only three that move are client-java, client-java-api and client-java-proto.
  No okhttp-jvm; okhttp stays 4.12.0, logging-interceptor 4.12.0,
  kotlin-stdlib 1.8.21.
- Across all 43 io.kubernetes types we import (including CoreV1Api, BatchV1Api,
  CustomObjectsApi, ApiextensionsV1Api, VersionApi, ClientBuilder, Config and
  Yaml), the only public members 25.0.1 removes are
  V1ResourceRequirements.claims* and the V1ResourceClaim type (k8s 1.34 DRA
  rework). Every V1ResourceRequirements call site here uses only
  .requests()/.limits(), and there are no V1ResourceClaim references.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@mohityadav766
mohityadav766 requested a review from a team as a code owner August 11, 2026 13:40
Copilot AI lite review requested due to automatic review settings August 11, 2026 13:40
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

Copilot AI 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.

Pull request overview

This PR updates the Maven dependency set to remediate CVE-2026-15687 by upgrading the Kubernetes Java client used by openmetadata-service, while preventing an unintended OkHttp 5 artifact from entering the runtime classpath via transitive dependencies.

Changes:

  • Bump io.kubernetes:client-java from 24.0.0 to 25.0.1 in openmetadata-service.
  • Pin com.squareup.okhttp3:logging-interceptor to 4.12.0 in root dependencyManagement to avoid pulling okhttp-jvm 5.x alongside pinned OkHttp 4.12.0.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
pom.xml Adds a dependencyManagement pin for logging-interceptor 4.12.0 to prevent mixed OkHttp 4/5 artifacts on the classpath.
openmetadata-service/pom.xml Updates the kubernetes-client.version property to 25.0.1 with a CVE note, driving the client-java dependency upgrade.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread openmetadata-service/pom.xml Resolved
…eeps 24.0.0

openmetadata-integration-tests declared io.kubernetes:client-java with a
hardcoded <version>24.0.0</version>, so the previous commit left that module on
the vulnerable version. It was hardcoded because kubernetes-client.version only
existed in openmetadata-service/pom.xml — a sibling module cannot reference it.

Move the property to the root pom, where both consumers inherit it, and point
openmetadata-integration-tests at ${kubernetes-client.version}. Bumping it in
one place now covers every module, so a future bump cannot silently miss one.

The dependency is test-scoped, so it never shipped — but Snyk's Maven scanner
walks test and provided scopes, so it would still have been reported.

Verified: openmetadata-service, openmetadata-integration-tests and
openmetadata-k8s-operator all resolve client-java, client-java-api and
client-java-proto at 25.0.1 across compile, provided and test scope. No 24.x
remains anywhere, and logging-interceptor stays 4.12.0 in both compile and test.

Caught by Copilot review on #31342.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings August 11, 2026 14:04
mohityadav766 added a commit that referenced this pull request Aug 11, 2026
…eeps 24.0.0

openmetadata-integration-tests declared io.kubernetes:client-java with a
hardcoded <version>24.0.0</version>, so the previous commit left that module on
the vulnerable version. It was hardcoded because kubernetes-client.version only
existed in openmetadata-service/pom.xml — a sibling module cannot reference it.

Move the property to the root pom, where both consumers inherit it, and point
openmetadata-integration-tests at ${kubernetes-client.version}. Bumping it in
one place now covers every module, so a future bump cannot silently miss one.

The dependency is test-scoped, so it never shipped — but Snyk's Maven scanner
walks test and provided scopes, so it would still have been reported.

Verified: openmetadata-service, openmetadata-integration-tests and
openmetadata-k8s-operator all resolve client-java, client-java-api and
client-java-proto at 25.0.1 across compile, provided and test scope. No 24.x
remains anywhere, and logging-interceptor stays 4.12.0 in both compile and test.

Caught by Copilot review on #31342.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

Copilot AI 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.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit d87a08352d437aa33a2f96979e63dff89fd1b9ba in Playwright run 31501726235, attempt 1.

✅ 550 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky

Performance

Blocking targets: ✅ met · Optimization targets: 🟡 in progress

Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting.

🕒 Full workflow signal wall (to summary) 1h 0m 0s

⏱️ Max setup 3m 1s · max shard execution 18m 29s · max shard-job elapsed before upload 21m 35s · reporting 3s

🌐 210.43 requests/attempt · 2.83 app boots/UI scenario · 7.03% common-shard skew

Optimization targets still in progress:

  • Browser traffic was 210.43 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.83 per UI scenario (1617 boots / 571 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 122 0 0 0 0 0
✅ Shard chromium-02 144 0 0 0 0 0
✅ Shard chromium-03 133 0 0 0 0 0
✅ Shard data-asset-rules-01 61 0 0 0 0 0
✅ Shard domain-isolation-01 14 0 0 0 0 0
✅ Shard global-state-01 34 0 0 0 0 0
✅ Shard ingestion-01 1 0 0 0 0 0
✅ Shard reindex-01 2 0 0 0 0 0
✅ Shard search-01 10 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@mohityadav766
mohityadav766 added this pull request to the merge queue Aug 11, 2026
Merged via the queue into main with commit c378626 Aug 11, 2026
107 of 111 checks passed
@mohityadav766
mohityadav766 deleted the fix-snyk-k8s-client-java branch August 11, 2026 23:14
@gitar-bot

gitar-bot Bot commented Aug 11, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Bumps io.kubernetes:client-java to 25.0.1 at the root to resolve CVE-2026-15687 and pins logging-interceptor to prevent classpath conflicts. No issues found.

Options

Display: compact → Showing less information.

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

sonika-shah pushed a commit that referenced this pull request Aug 12, 2026
) to 2.0 (#31343)

* fix(security): bump io.kubernetes:client-java 24.0.0 -> 25.0.1 (CVE-2026-15687)

Directory Traversal in copyDirectoryFromPod when enableTarCompressing=false
(SNYK-JAVA-IOKUBERNETES-18313175, CVSS 4.8). Vulnerable range [,25.0.1).

openmetadata-dist ships client-java, so this reaches OSS installs. It does not
show up in our own Snyk report because that scan applies a high severity floor
and this finding is medium.

Also pins com.squareup.okhttp3:logging-interceptor to 4.12.0, next to the okhttp
pin already in root dependencyManagement. client-java 25.x declares
logging-interceptor 5.1.0, and okhttp 5 relocated the okhttp3.* classes out of
okhttp into a new okhttp-jvm artifact — so without the pin, okhttp-jvm 5.1.0
joins the pinned okhttp 4.12.0 on the classpath and okhttp3.* ends up split
across two jars, resolved by classpath order. okhttp 4.12.0 satisfies
client-java 25.0.1: its bytecode references the exact same 118 okhttp/okio
members as 24.0.0 does today, zero added and zero removed, so upstream's move to
okhttp 5 is a declared-dependency bump rather than an API requirement.

Verified:
- openmetadata-service + openmetadata-k8s-operator resolve 596 artifacts; the
  only three that move are client-java, client-java-api and client-java-proto.
  No okhttp-jvm; okhttp stays 4.12.0, logging-interceptor 4.12.0,
  kotlin-stdlib 1.8.21.
- Across all 43 io.kubernetes types we import (including CoreV1Api, BatchV1Api,
  CustomObjectsApi, ApiextensionsV1Api, VersionApi, ClientBuilder, Config and
  Yaml), the only public members 25.0.1 removes are
  V1ResourceRequirements.claims* and the V1ResourceClaim type (k8s 1.34 DRA
  rework). Every V1ResourceRequirements call site here uses only
  .requests()/.limits(), and there are no V1ResourceClaim references.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* fix(security): hoist kubernetes-client.version to root so no module keeps 24.0.0

openmetadata-integration-tests declared io.kubernetes:client-java with a
hardcoded <version>24.0.0</version>, so the previous commit left that module on
the vulnerable version. It was hardcoded because kubernetes-client.version only
existed in openmetadata-service/pom.xml — a sibling module cannot reference it.

Move the property to the root pom, where both consumers inherit it, and point
openmetadata-integration-tests at ${kubernetes-client.version}. Bumping it in
one place now covers every module, so a future bump cannot silently miss one.

The dependency is test-scoped, so it never shipped — but Snyk's Maven scanner
walks test and provided scopes, so it would still have been reported.

Verified: openmetadata-service, openmetadata-integration-tests and
openmetadata-k8s-operator all resolve client-java, client-java-api and
client-java-proto at 25.0.1 across compile, provided and test scope. No 24.x
remains anywhere, and logging-interceptor stays 4.12.0 in both compile and test.

Caught by Copilot review on #31342.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
k-anshul pushed a commit to k-anshul/OpenMetadata that referenced this pull request Aug 12, 2026
…) (open-metadata#31342)

* fix(security): bump io.kubernetes:client-java 24.0.0 -> 25.0.1 (CVE-2026-15687)

Directory Traversal in copyDirectoryFromPod when enableTarCompressing=false
(SNYK-JAVA-IOKUBERNETES-18313175, CVSS 4.8). Vulnerable range [,25.0.1).

openmetadata-dist ships client-java, so this reaches OSS installs. It does not
show up in our own Snyk report because that scan applies a high severity floor
and this finding is medium.

Also pins com.squareup.okhttp3:logging-interceptor to 4.12.0, next to the okhttp
pin already in root dependencyManagement. client-java 25.x declares
logging-interceptor 5.1.0, and okhttp 5 relocated the okhttp3.* classes out of
okhttp into a new okhttp-jvm artifact — so without the pin, okhttp-jvm 5.1.0
joins the pinned okhttp 4.12.0 on the classpath and okhttp3.* ends up split
across two jars, resolved by classpath order. okhttp 4.12.0 satisfies
client-java 25.0.1: its bytecode references the exact same 118 okhttp/okio
members as 24.0.0 does today, zero added and zero removed, so upstream's move to
okhttp 5 is a declared-dependency bump rather than an API requirement.

Verified:
- openmetadata-service + openmetadata-k8s-operator resolve 596 artifacts; the
  only three that move are client-java, client-java-api and client-java-proto.
  No okhttp-jvm; okhttp stays 4.12.0, logging-interceptor 4.12.0,
  kotlin-stdlib 1.8.21.
- Across all 43 io.kubernetes types we import (including CoreV1Api, BatchV1Api,
  CustomObjectsApi, ApiextensionsV1Api, VersionApi, ClientBuilder, Config and
  Yaml), the only public members 25.0.1 removes are
  V1ResourceRequirements.claims* and the V1ResourceClaim type (k8s 1.34 DRA
  rework). Every V1ResourceRequirements call site here uses only
  .requests()/.limits(), and there are no V1ResourceClaim references.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* fix(security): hoist kubernetes-client.version to root so no module keeps 24.0.0

openmetadata-integration-tests declared io.kubernetes:client-java with a
hardcoded <version>24.0.0</version>, so the previous commit left that module on
the vulnerable version. It was hardcoded because kubernetes-client.version only
existed in openmetadata-service/pom.xml — a sibling module cannot reference it.

Move the property to the root pom, where both consumers inherit it, and point
openmetadata-integration-tests at ${kubernetes-client.version}. Bumping it in
one place now covers every module, so a future bump cannot silently miss one.

The dependency is test-scoped, so it never shipped — but Snyk's Maven scanner
walks test and provided scopes, so it would still have been reported.

Verified: openmetadata-service, openmetadata-integration-tests and
openmetadata-k8s-operator all resolve client-java, client-java-api and
client-java-proto at 25.0.1 across compile, provided and test scope. No 24.x
remains anywhere, and logging-interceptor stays 4.12.0 in both compile and test.

Caught by Copilot review on open-metadata#31342.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
sonika-shah added a commit that referenced this pull request Aug 17, 2026
Backport 5 dependency version bumps already on main but missing from 1.13.
These artifacts are declared in OpenMetadata's own poms, so 1.13 shipped
them at vulnerable versions.

- CVE-2026-9563 (HIGH):  parsson                1.1.5  -> 1.1.8   (main #30051)
- CVE-2026-59889 (HIGH): tools.jackson BOM      3.1.3  -> 3.1.5   (main #30498)
- CVE-2026-41715 (MED):  reactor-netty-http     1.2.16 -> 1.2.18  (main #31257)
- CVE-2026-15687 (MED):  kubernetes client-java 24.0.0 -> 25.0.1  (main #31342)
- CVE-2025-55754 (MED):  tomcat-jdbc/-juli      11.0.5 -> 11.0.11 (main #31258)

This branch was previously deployed

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

Labels

backend safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants