Skip to content

fix(deps): bump shiro, postgresql, opentelemetry, kerby, json-smart, wcmatch for CVEs - #21597

Merged
skrydal merged 3 commits into
masterfrom
fix/dependency-cve-bumps
Nov 25, 2026
Merged

skrydal merged 3 commits into
masterfrom
fix/dependency-cve-bumps

Conversation

@supersingh05

@supersingh05 supersingh05 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Dependency bumps that clear CVE findings in the published quickstart images. Each one is a direct version bump of a dependency we declare or align in the build.

Java (build.gradle + Gradle lockfiles)

Package Change CVEs Images
org.apache.shiro:* 2.2.1 → 3.0.2 CVE-2026-56130, CVE-2026-58301, CVE-2026-74762, CVE-2026-129320 frontend
org.postgresql:postgresql 42.7.12 → 42.7.15 CVE-2026-107314, CVE-2026-107315 gms, mae-consumer, mce-consumer, upgrade
io.opentelemetry:* 1.62.0 → 1.67.0 CVE-2026-118259 frontend, gms, mae-consumer, mce-consumer, upgrade
org.apache.kerby:* 2.0.3 → 2.1.2 (whole group aligned) CVE-2026-57914 (kerby-asn1) upgrade
net.minidev:json-smart 2.6.0 → 2.6.1 CVE-2026-113602 frontend
  • The frontend uses Shiro only for AesCipherService in Shiro2AesDataEncrypter. It compiles unchanged on 3.0.2.
  • kerby comes in transitively through Hadoop. A new eachDependency rule keeps all org.apache.kerby modules on one version, so they don't mix 2.0.3 and 2.1.2.

Python (metadata-ingestion)

Package Change CVE Images
wcmatch cap <11.0.0 → <13.0.0, locked 10.1 → 12.0.4 (bracex 2.6 → 3.2.4) CVE-2026-132276 (fixed in 11.2) datahub-actions
  • The ingestion code uses only GLOBSTAR and DOTGLOB with globmatch and glob.compile. The breaking changes in wcmatch 11 and 12 affect EXTGLOB/!(...) patterns and the capture groups from translate. We don't use either.
  • pyproject.toml, uv.lock and constraints.txt were regenerated from setup.py with :metadata-ingestion:updateLockFile, then uv lock --upgrade-package wcmatch.

Not in this PR

  • jackson-databind/jackson-core 2.21.2 and 3.1.2, org.json 20250107: shaded inside hazelcast-5.7.0.jar. Our own pins are already on fixed versions.
  • jackson 2.22.2, guava 32.1.2 / 33.3.1 / 33.4.8: shaded inside parquet-jackson, graphql-java, iceberg-bundled-guava and hadoop-shaded-guava.
  • Wolfi OS packages (openssl-4.0, glibc-2.44, sqlite, binutils, ...): no fixed version upstream yet.

Testing

  • ./gradlew resolveAndLockAll --write-locks (JDK 25): no unresolved configurations. json-smart 2.6.0 remains only in test classpaths.
  • :datahub-frontend:test for AuthModuleTest, AuthenticationControllerTest and SerializationUtilsTest (covers the Shiro AES cookie encrypter): 52 tests, all pass.
  • :metadata-ingestion:checkLockFile: pass.
  • metadata-ingestion unit tests that use path specs or wcmatch (34 files, on wcmatch 12.0.4): 955 passed, 3 xfailed, 1 failed. The failure is test_sql_import_isolation[...adf_source], which fails only because the local venv doesn't have the Azure Data Factory extra installed (No module named 'azure.mgmt').

Summary by cubic

Bumps Java and Python dependencies to clear CVE findings in published quickstart images, with lockfiles regenerated accordingly. Shiro, PostgreSQL, OpenTelemetry, Kerby, json-smart, and wcmatch all move to newer fixed versions.

Notable side effects

  • Shiro jumps 2.2.1 → 3.0.2, but the frontend uses it only for the AES cookie encrypter, which compiles unchanged.
  • Kerby comes in transitively via Hadoop; a new resolution rule keeps all org.apache.kerby modules on one version.
  • wcmatch moves 10.x → 12.x; the breaking changes affect EXTGLOB and translate, which ingestion doesn't use.
  • OTel 1.67+ returns a no-op tracer when no span processor is registered, so tests now register a no-op SimpleSpanProcessor; opentelemetry-api-incubator is aligned to the SDK version.
  • Jackson and org.json CVEs are excluded because those jars are shaded inside hazelcast, parquet-jackson, and related libs.

Written for commit af9ffd8. Summary will update on new commits.

View guided diff Turn on auto-fix

OpenTelemetry 1.67 follow-ups

  • opentelemetry-api-incubator ships on its own -alpha line and was excluded from the OTel alignment rule, so it stayed at the 1.62 alpha. The 1.67 SDK calls into it, and that old incubator references io.opentelemetry.api.internal.ConfigUtil, which api 1.67 removed. Services then failed at startup with NoClassDefFoundError. A new eachDependency rule aligns it to ${openTelemetryVersion}-alpha (1.67.0-alpha).
  • SDK 1.67 returns a no-op tracer when no span processor is registered. AspectDaoTest and ElasticsearchControllerTest built a bare SdkTracerProvider, so their spans became invalid. They now register SimpleSpanProcessor.create(SpanExporter.composite()). Production is not affected, because OpenTelemetryBaseFactory always registers span processors.
  • Verified locally after the fix: AspectDaoTest 13/13, ElasticsearchControllerTest 21/21, MAE/MCE bootTest pass.

@github-actions github-actions Bot added ingestion PR or Issue related to the ingestion of metadata product PR or Issue related to the DataHub UI/UX devops PR or Issue related to DataHub backend & deployment labels Nov 25, 2026
@cursor

cursor Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

PR Summary

Overview
This PR bumps vulnerable Java and Python dependencies and refreshes Gradle/Python lockfiles to match.

Java (build.gradle) raises pinned versions for OpenTelemetry (1.62.0 → 1.67.0, with opentelemetry-api-incubator forced to the matching -alpha line), Apache Shiro (2.2.1 → 3.0.2), PostgreSQL JDBC (42.7.12 → 42.7.15), and json-smart (2.6.0 → 2.6.1). It adds kerbyVersion 2.1.2 and an eachDependency rule so all org.apache.kerby modules align on that version for transitive Hadoop pulls.

Tests in AspectDaoTest and ElasticsearchControllerTest register a no-op SimpleSpanProcessor because OTel SDK 1.67+ yields invalid span contexts without a span processor.

Python (metadata-ingestion) widens the wcmatch ceiling to <13.0.0 (resolved 12.0.4, with bracex 3.2.4) across extras, setup.py, constraints.txt, and uv.lock.

Reviewed by Cursor Bugbot for commit af9ffd8. Bugbot is set up for automated code reviews on this repo. Configure here.

@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@meticulous

meticulous Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Meticulous is testing this change with Agent swarm instead of replaying recorded sessions. View Agent swarm.

Last updated for commit af9ffd8 fix(deps): align opentelemetry-api-incubator with the SDK and register a.... This comment will update as new commits are pushed.

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Smart test selection

pytest smoke tests

Mode: shadow. The selection below is computed but not applied; this PR still runs the default matrix (p0).

  • Selection: p0: the p0 tier (fail-safe)
  • Size: 375 of 375 tests in 2 batches, predicted longest batch ~4 min
  • Tags: none
  • Confidence: LOW (47 changed files)
  • Classifier reasoning: Broad dependency bumps (OpenTelemetry, okhttp, shiro, postgresql, kerby, wcmatch) affect many subsystems without a clear feature mapping, so LOW confidence is used to trigger the broader p0 tier; the test-file edits to AspectDaoTest and ElasticsearchControllerTest point to ebean-mysql and elasticse…
  • Fell back to the fail-safe because: the classifier had low confidence in its tags
Selected scopes (80 files or classes, 375 tests)
  • tests/e2e/assertions/assertions_test.py
  • tests/e2e/assertions/custom_assertions_test.py
  • tests/e2e/audit_events/audit_events_test.py
  • tests/e2e/authorization/test_aspect_write_auth.py
  • tests/e2e/authorization/test_credential_aspect_read_auth.py
  • tests/e2e/authorization/test_query_entity_read_auth.py
  • tests/e2e/cli/dataset_cmd/test_dataset_command.py
  • tests/e2e/cli/delete_cmd/test_timeseries_delete.py
  • tests/e2e/cli/graphql_cmd/test_graphql_cli_smoke.py::TestGraphQLCLIIntegration
  • tests/e2e/cli/ingest_cmd/test_timeseries_rollback.py
  • tests/e2e/cli/migrate_cmd/test_migrate_instance2instance_smoke.py
  • tests/e2e/cli/migrate_cmd/test_migrate_scenarios_smoke.py
  • tests/e2e/cli/search_cmd/test_search_cmd.py::TestSearchBasic
  • tests/e2e/cli/user_cmd/test_user_add.py
  • tests/e2e/cli/user_groups_cmd/test_group_cmd.py
  • tests/e2e/cli/user_groups_cmd/test_user_cmd.py
  • tests/e2e/containers/container_entities_batching_test.py
  • tests/e2e/containers/containers_test.py
  • tests/e2e/database/test_database.py
  • tests/e2e/datapack/test_datapack_smoke.py::TestDatapackCLI
  • tests/e2e/dataproduct/test_dataproduct.py
  • tests/e2e/delete/delete_test.py
  • tests/e2e/deprecation/deprecation_test.py
  • tests/e2e/domains/domains_test.py
  • tests/e2e/entity_graph_cache/test_entity_graph_cache.py::TestContainer
  • tests/e2e/entity_graph_cache/test_entity_graph_cache.py::TestDomain
  • tests/e2e/entity_graph_cache/test_entity_graph_cache.py::TestGlossary
  • tests/e2e/entity_versioning/test_effective_latest_versioning.py::TestEffectiveLatestVersioning
  • tests/e2e/entity_versioning/test_glossary_term_new_version.py
  • tests/e2e/entity_versioning/test_glossary_versioning.py
  • tests/e2e/forms/forms_test.py
  • tests/e2e/frontend/test_static_asset_encodings.py
  • tests/e2e/graph/test_graph_client.py
  • tests/e2e/incidents/health_batch_test.py
  • tests/e2e/incidents/incidents_test.py
  • tests/e2e/institutional_memory/institutional_memory_test.py
  • tests/e2e/knowledge/document_change_history_test.py
  • tests/e2e/knowledge/document_search_filter_test.py
  • tests/e2e/knowledge/test_document_crud.py::TestDocumentCrudAndMutations
  • tests/e2e/library_examples/test_library_examples.py
  • tests/e2e/lineage/test_lineage.py
  • tests/e2e/managed_ingestion/managed_ingestion_test.py
  • tests/e2e/object_storage/test_object_storage.py
  • tests/e2e/openapi/test_openapi.py
  • tests/e2e/openapi/v1/test_tracking.py
  • tests/e2e/openapi/v2/test_timeseries_scroll.py
  • tests/e2e/openapi/v3/test_scroll_entities.py
  • tests/e2e/openapi/v3/test_scroll_lineage.py
  • tests/e2e/openapi/v3/test_scroll_relationships.py
  • tests/e2e/patch/test_datajob_patches.py
  • tests/e2e/patch/test_dataset_patches.py
  • tests/e2e/patch/test_domain_patches.py
  • tests/e2e/policies/test_policies.py
  • tests/e2e/privileges/test_privileges.py
  • tests/e2e/read_only/test_ingestion_list.py
  • tests/e2e/read_only/test_policies.py
  • tests/e2e/read_only/test_search.py
  • tests/e2e/read_only/test_services_up.py
  • tests/e2e/restli/test_restli_batch_ingestion.py
  • tests/e2e/search/test_search_projection.py::TestSearchProjection
  • tests/e2e/semantic/test_current_offset_api.py
  • tests/e2e/service_accounts/test_service_accounts.py
  • tests/e2e/status/test_glossary_lifecycle_stages.py::TestGlossaryTermLifecycleStages
  • tests/e2e/status/test_lifecycle_state.py::TestLifecycleStageAPIs
  • tests/e2e/structured_properties/test_structured_properties.py
  • tests/e2e/tags_and_terms/tags_and_terms_test.py
  • tests/e2e/test_authentication_e2e.py
  • tests/e2e/test_e2e.py
  • tests/e2e/test_kafka_default_sink.py
  • tests/e2e/test_stateful_ingestion.py
  • tests/e2e/test_system_info.py
  • tests/e2e/timeline/timeline_change_history_test.py::TestDatasetTimeline
  • tests/e2e/timeline/timeline_change_history_test.py::TestGlossaryTermTimeline
  • tests/e2e/timeline/timeline_test.py
  • tests/e2e/timeseries/test_dataset_profiles_graphql.py
  • tests/e2e/timeseries/test_stats_summary_graphql.py
  • tests/e2e/tokens/revokable_access_token_test.py
  • tests/e2e/tokens/session_access_token_test.py
  • tests/e2e/trace/test_api_trace.py
  • tests/e2e/views/views_test.py

Add the run-all-tests:pytest label to run the full pytest suite on this PR.

Playwright E2E tests

This run: p0

  • Selection: p0: P0 tests plus the tests the change affects
  • Size: 144 tests in 78 spec files, ~32 min predicted on 5 shard(s)
  • Baseline: 78 spec files run for every PR (@p0)
  • No spec was selected because of this PR's changes.

Add the run-all-tests:playwright label to run the full Playwright suite on this PR.

commit af9ffd8 · workflow run

@github-actions

Copy link
Copy Markdown
Contributor

Initial JS bundle size ➡️

Base (ddd4ce5) This PR Diff
index.html (/login) 249 KB 249 KB +0 KB (+0.0%)
Logged-in shell 1.07 MB 1.07 MB +0 KB (+0.0%)
/search 1.25 MB 1.25 MB +0 KB (+0.0%)
/ (home) 1.26 MB 1.26 MB +0 KB (+0.0%)

index.html is the login page; logged-in pages add the shell. Gzip of the JS loaded before first paint. Codecov reports total bundle including lazy chunks — these intentionally differ.

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Boot web vitals (no backend)

Unauthenticated /login against the two dist/ trees from this job. No GMS — this is eager JS, not search/dataset payload. Lantern, desktop, 1x CPU. Does not forecast fleet p75; do not gate on LCP.

Web-vitals A/B — base (ddd4ce5) (A) vs pr (af9ffd8) (B)

Lighthouse 12.8.2, throttling simulate (cpu 1x, rtt 40 ms, 10240 kbps). Form factor: desktop. Cache: cold (fresh incognito context per run). target n=3/build, 1 warm-up discarded, alternating A,B.

Boot-only (no GMS). Unauthenticated login route — eager JS/CSS/font transfer and parse, not search/dataset payload. Do not treat as a fleet p75.

boot

Measured runs in the table: A 3/3, B 3/3.

metric A p50 B p50 Δ p50 Δ% A p95 B p95
fcp 854 ms 855 ms 1 ms +0.1% 858 ms 856 ms
lcp 1311 ms 1311 ms 0 ms +0.0% 1317 ms 1314 ms
cls 0.0000 0.0000 0.0000 — 0.0000 0.0000
tbt 16 ms 15 ms -1 ms -6.3% 17 ms 16 ms
tti 1312 ms 1313 ms 1 ms +0.0% 1318 ms 1315 ms
ttfb 1 ms 1 ms 0 ms -38.7% 1 ms 1 ms
transferredBytes 1073.5 KB 1073.5 KB 0.0 KB +0.0% 1073.5 KB 1073.5 KB
mainThread 290 ms 293 ms 4 ms +1.3% 290 ms 296 ms
bootup 157 ms 158 ms 1 ms +0.7% 162 ms 159 ms

Resource transfer by type (p50):

type A bytes B bytes Δ bytes A requests B requests
document 1.3 KB 1.3 KB 0.0 KB 1 1
script 641.7 KB 641.7 KB 0.0 KB 8 8
stylesheet 3.0 KB 3.0 KB 0.0 KB 2 2
image 48.7 KB 48.7 KB 0.0 KB 1 1
media 257.3 KB 257.3 KB 0.0 KB 1 1
font 106.6 KB 106.6 KB 0.0 KB 3 3
other 0.0 KB 0.0 KB 0.0 KB 0 0

LCP element A: div > div.sc-fpAkvV > div.sc-pRPz > p.sc-pNWdM — Welcome to DataHub
LCP element B: div > div.sc-fpAkvV > div.sc-pRPz > p.sc-pNWdM — Welcome to DataHub

These numbers rank changes and gate regressions against the measured origin(s). They do not sum across PRs and do not forecast any fleet-wide production number.

@skrydal
skrydal enabled auto-merge (squash) November 25, 2026 01:25
@skrydal
skrydal merged commit fe408d9 into master Nov 25, 2026
126 of 127 checks passed
@skrydal
skrydal deleted the fix/dependency-cve-bumps branch November 25, 2026 01:27
@datahub-connector-tests

Copy link
Copy Markdown

Connector Tests Results

Connector tests failed for commit af9ffd8

View full test logs →

To skip connector tests, add the skip-connector-tests label (org members only).

Autogenerated by the connector-tests CI pipeline.

This branch was successfully deployed

2 active deployments
Preview — af9ffd89 Deployed Nov 25, 2026 by vercel[bot]
datahub-project-web-react (Preview) — af9ffd89 Deployed Nov 25, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops PR or Issue related to DataHub backend & deployment ingestion PR or Issue related to the ingestion of metadata product PR or Issue related to the DataHub UI/UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants