geyanggang commented on code in PR #14963:
URL: https://github.com/apache/gravitino/pull/14963#discussion_r4595986255
##########
catalogs/catalog-kafka/build.gradle.kts:
##########
@@ -33,6 +33,12 @@ dependencies {
implementation(libs.kafka.clients)
implementation(libs.slf4j.api)
+ // kafka-clients pulls at.yawk.lz4:lz4-java 1.10.1, which is affected by
GHSA-mcr4-qmvw-px4g
+ // (CVE-2026-106451). Declare 1.11.4 as a direct dependency instead of a
constraint, so it also
+ // wins in the published POM: a constraint only becomes dependencyManagement
there, and Maven
+ // consumers of this artifact would still resolve 1.10.1 through
kafka-clients.
+ runtimeOnly(libs.yawk.lz4.java)
Review Comment:
Confirmed and fixed. `runtimeOnly(libs.snappy.java)` is now declared next to
LZ4, so the generated POM lists `snappy-java:1.1.10.12` as a direct runtime
dependency. The Gradle `force` only covered the binary distribution. I resolved
the generated POM with Maven 3.x using a clean local repository: the runtime
tree has `snappy-java:1.1.10.12`, `lz4-java:1.11.4` and `zstd-jni:1.5.6-4`. OSV
lists no vulnerability for these three, `kafka-clients:3.9.2` or
`slf4j-api:1.7.36`. The 26 Kafka unit tests and `spotlessCheck` pass. The Trivy
scan was not run locally.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]