From 29faa09209a0bacc4b247f56a9cde430445b2412 Mon Sep 17 00:00:00 2001 From: Xinyu Liu Date: Wed, 2 Sep 2026 15:46:28 -0700 Subject: [PATCH] Bump netty to 4.1.137.Final to clear CVE-2025-59419 The Flink job-server fat jar bundles io.netty:netty-all, the aggregate artifact that ships every codec including netty-codec-smtp. At 4.1.124.Final that codec carries CVE-2025-59419 (SMTP command injection via unvalidated CRLF in DefaultSmtpRequest), which surfaces as a HIGH finding on Glean's flink-invoker image. 4.1.137.Final is the latest 4.1.x, well past the 4.1.129.Final fix, and matches the netty-all pin already used in scio's Java graph. Upstream Beam master is on 4.1.133.Final, so this is not ahead of what Beam itself tests against. Rebuilding :runners:flink:2.0:job-server:shadowJar with this change alters only entries under io/netty/ (19 removed, 45 added); no Beam or Flink class changes. Co-authored-by: Cursor --- .../main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy index 37783f135db7..d4ce419e2a2a 100644 --- a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy +++ b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy @@ -631,7 +631,8 @@ class BeamModulePlugin implements Plugin { def log4j2_version = "2.25.3" def nemo_version = "0.1" // [bomupgrader] determined by: io.grpc:grpc-netty, consistent with: google_cloud_platform_libraries_bom - def netty_version = "4.1.124.Final" + // Held above the bomupgrader's choice: netty-all below 4.1.129.Final carries CVE-2025-59419. + def netty_version = "4.1.137.Final" // [bomupgrader] determined by: io.opentelemetry:opentelemetry-sdk, consistent with: google_cloud_platform_libraries_bom def opentelemetry_version = "1.51.0" def postgres_version = "42.6.2"