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

Merged
SU
3d ago
+693-666

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)

PackageChangeCVEsImages
org.apache.shiro:*2.2.1 → 3.0.2CVE-2026-56130, CVE-2026-58301, CVE-2026-74762, CVE-2026-129320frontend
org.postgresql:postgresql42.7.12 → 42.7.15CVE-2026-107314, CVE-2026-107315gms, mae-consumer, mce-consumer, upgrade
io.opentelemetry:*1.62.0 → 1.67.0CVE-2026-118259frontend, 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-smart2.6.0 → 2.6.1CVE-2026-113602frontend
  • 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)

PackageChangeCVEImages
wcmatchcap <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.

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.