From 73e79ae8b995a9867bdd70f4a72b861cc8919ec0 Mon Sep 17 00:00:00 2001 From: sahej Date: Tue, 17 Nov 2026 23:34:34 +0000 Subject: [PATCH 1/2] Pin guava, netty and commons-lang3 past remaining CVEs Declare patched versions directly so Maven consumers resolve them. Keep netty-common and netty-buffer on the same version. Co-Authored-By: Claude Opus 5.5 --- build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.gradle b/build.gradle index b83f85d..9ddbaac 100644 --- a/build.gradle +++ b/build.gradle @@ -38,6 +38,13 @@ dependencies { implementation 'javax.annotation:javax.annotation-api:1.3.2' // Guava 33.4+ (via gRPC 1.85) no longer brings checker-qual; chalk-java uses its @Nullable/@NonNull annotations directly. implementation 'org.checkerframework:checker-qual:3.37.0' + // Pinned above what gRPC/Arrow bring transitively, to clear CVEs (FDE-87): + // guava CVE-2026-102554; netty-common CVE-2024-47535, CVE-2025-25193; commons-lang3 CVE-2025-48924. + // netty-buffer is pinned with netty-common so Arrow's netty modules stay on one version. + implementation 'com.google.guava:guava:33.7.2-android' + implementation 'io.netty:netty-common:4.1.140.Final' + implementation 'io.netty:netty-buffer:4.1.140.Final' + implementation 'org.apache.commons:commons-lang3:3.18.0' // Flink connector (ai.chalk.flink.*). compileOnly => not bundled and NOT exposed transitively, // so plain chalk-java users get no Flink in their tree; the classes only resolve for callers who From b6e2c5d3f75e0cab69b9d48fbcf26e8d6a0de60b Mon Sep 17 00:00:00 2001 From: sahej Date: Tue, 17 Nov 2026 23:49:40 +0000 Subject: [PATCH 2/2] Declare CVE pins as api; share nettyVersion api puts the pins on consumers' compile classpath too (matching grpc/arrow), so scanners that read every Gradle configuration see the fixed versions. netty-common and netty-buffer share one version variable so they can't drift. Co-Authored-By: Claude Opus 5.5 --- build.gradle | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 9ddbaac..e04298c 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,8 @@ def versions = [ arrowVersion: '17.0.0', jacksonVersion: '2.18.12', protobufVersion: '3.25.9', - flinkVersion: '1.19.2' + flinkVersion: '1.19.2', + nettyVersion: '4.1.140.Final' ] dependencies { @@ -41,10 +42,10 @@ dependencies { // Pinned above what gRPC/Arrow bring transitively, to clear CVEs (FDE-87): // guava CVE-2026-102554; netty-common CVE-2024-47535, CVE-2025-25193; commons-lang3 CVE-2025-48924. // netty-buffer is pinned with netty-common so Arrow's netty modules stay on one version. - implementation 'com.google.guava:guava:33.7.2-android' - implementation 'io.netty:netty-common:4.1.140.Final' - implementation 'io.netty:netty-buffer:4.1.140.Final' - implementation 'org.apache.commons:commons-lang3:3.18.0' + api 'com.google.guava:guava:33.7.2-android' + api "io.netty:netty-common:${versions.nettyVersion}" + api "io.netty:netty-buffer:${versions.nettyVersion}" + api 'org.apache.commons:commons-lang3:3.18.0' // Flink connector (ai.chalk.flink.*). compileOnly => not bundled and NOT exposed transitively, // so plain chalk-java users get no Flink in their tree; the classes only resolve for callers who