fix(deps): bump shiro, postgresql, opentelemetry, kerby, json-smart, wcmatch for CVEs
Merged
SU
3d ago+693+693+012345678901234567890123456789-666-666-012345678901234567890123456789
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
AesCipherServiceinShiro2AesDataEncrypter. It compiles unchanged on 3.0.2. - kerby comes in transitively through Hadoop. A new
eachDependencyrule keeps allorg.apache.kerbymodules 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
GLOBSTARandDOTGLOBwithglobmatchandglob.compile. The breaking changes in wcmatch 11 and 12 affectEXTGLOB/!(...)patterns and the capture groups fromtranslate. We don't use either. pyproject.toml,uv.lockandconstraints.txtwere regenerated fromsetup.pywith:metadata-ingestion:updateLockFile, thenuv 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-guavaandhadoop-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:testforAuthModuleTest,AuthenticationControllerTestandSerializationUtilsTest(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.kerbymodules on one version. - wcmatch moves 10.x → 12.x; the breaking changes affect
EXTGLOBandtranslate, 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-incubatoris aligned to the SDK version. - Jackson and
org.jsonCVEs are excluded because those jars are shaded insidehazelcast,parquet-jackson, and related libs.
OpenTelemetry 1.67 follow-ups
opentelemetry-api-incubatorships on its own-alphaline 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 referencesio.opentelemetry.api.internal.ConfigUtil, which api 1.67 removed. Services then failed at startup withNoClassDefFoundError. A neweachDependencyrule aligns it to${openTelemetryVersion}-alpha(1.67.0-alpha).- SDK 1.67 returns a no-op tracer when no span processor is registered.
AspectDaoTestandElasticsearchControllerTestbuilt a bareSdkTracerProvider, so their spans became invalid. They now registerSimpleSpanProcessor.create(SpanExporter.composite()). Production is not affected, becauseOpenTelemetryBaseFactoryalways registers span processors. - Verified locally after the fix: AspectDaoTest 13/13, ElasticsearchControllerTest 21/21, MAE/MCE bootTest pass.