fix(security): bump micrometer to 1.16.7 for CVE-2026-59296 (2.0) - #31927
Conversation
micrometer-core 1.15.12 is flagged by CVE-2026-59296 (metric/log line injection via unsanitized newlines in the StatsD and Logging registries, CWE-74). The 1.15.x line has no OSS fix (1.15.13 is enterprise-only), so move to the 1.16.7 OSS fixed version. micrometer-registry-prometheus 1.16.x pulls the prometheus client_java family at 1.4.3, so bump prometheus-metrics-instrumentation-dropwizard to 1.4.3 in lockstep to keep the family aligned and avoid the runtime NoSuchMethodError split the pin guards against.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
Code Review ✅ ApprovedBumps micrometer to 1.16.7 and prometheus-metrics-instrumentation-dropwizard to 1.4.3 in the root pom.xml to remediate CVE-2026-59296. No issues found. OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
✅ Playwright Results — workflow succeededValidated commit ✅ 551 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking 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) 50m 4s ⏱️ Max setup 3m 1s · max shard execution 17m 50s · max shard-job elapsed before upload 21m 34s · reporting 4s 🌐 210.26 requests/attempt · 2.83 app boots/UI scenario · 4.39% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
|
The Java checkstyle failed. Please run You can install the pre-commit hooks with |
What
Direct-to-
2.0companion of #31926. Bumpmicrometer1.15.12→1.16.7to remediate CVE-2026-59296, and bumpprometheus-metrics-instrumentation-dropwizard1.3.10→1.4.3in lockstep to keep the prometheus client_java family aligned.Raised directly against
2.0(rather than relying on a cherry-pick of #31926) because this is a two-hunk pom change and the release is imminent — landing only one hunk on2.0would leave the prometheus-metrics family split and cause a runtimeNoSuchMethodError.Why
micrometer-core 1.15.12is flagged by CVE-2026-59296 — metric/log line injection via unsanitized newlines in the StatsD and Logging registries (CWE-74, CVSS 5.9 MEDIUM). The 1.15.x line has no OSS fix (1.15.13is enterprise-only), so the minimum OSS remediation is1.16.7.micrometer-registry-prometheus 1.16.xpulls the prometheusclient_javafamily at1.4.3(up from1.3.10); theprometheus-metrics-instrumentation-dropwizardpin keeps that whole family on one version, so it moves to1.4.3too.Validation (against the 2.0 release commit)
dependency:tree: entiremicrometer-*family1.16.7; entireprometheus-metrics-*family uniformly1.4.3— no split. (io.prometheus:simpleclient 0.16.0is a separate library and is untouched.)openmetadata-service:BUILD SUCCESS. OM uses only stable core micrometer APIs and has zero directio.prometheus.metrics.*imports (only one module even consumes the artifact), so the1.4.3jump is purely transitive.MicrometerBundle(PrometheusMeterRegistry(DEFAULT)+ JVM/system binders + counter/timer →.scrape()): valid Prometheus exposition, noNoSuchMethodError.Scope
Two version lines in the root
pom.xml. Metrics stack only. StatsD /LoggingMeterRegistry(the affected registries) are not used by OpenMetadata — onlymicrometer-registry-prometheus— so the vulnerable path is not reachable in practice; this clears the scanner finding.Greptile Summary
This PR upgrades Micrometer to 1.16.7 to remediate CVE-2026-59296 while aligning the Prometheus client family.
Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains.
Important Files Changed
Reviews (2): Last reviewed commit: "Merge branch '2.0' into sec/micrometer-c..." | Re-trigger Greptile