Skip to content

Commit c06e7d2

Browse files
committed
give-up?
1 parent bf7ac0d commit c06e7d2

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

build.gradle.kts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,13 @@ subprojects {
2929
}
3030
}
3131

32-
// Handle lz4-java redirect capability conflict:
33-
// Sonatype added a redirect from org.lz4:lz4-java:1.8.1 -> at.yawk.lz4:lz4-java:1.8.1 to address CVE-2025-12183.
34-
// Both artifacts declare the same capability, causing a conflict when upgrading from Kafka's org.lz4:lz4-java:1.8.0.
35-
// This resolution strategy tells Gradle to automatically select the highest version when this conflict occurs.
32+
// Replace org.lz4:lz4-java with at.yawk.lz4:lz4-java to handle Sonatype relocation
33+
// This MUST be in each consuming repo - BOMs cannot enforce this automatically
3634
configurations.all {
37-
resolutionStrategy.capabilitiesResolution.withCapability("org.lz4:lz4-java") {
38-
select("at.yawk.lz4:lz4-java:1.8.1")
39-
because("Both org.lz4 and at.yawk.lz4 provide lz4-java due to Sonatype redirect")
35+
resolutionStrategy.dependencySubstitution {
36+
substitute(module("org.lz4:lz4-java"))
37+
.using(module("at.yawk.lz4:lz4-java:1.10.1"))
38+
.because("org.lz4:lz4-java has been relocated to at.yawk.lz4:lz4-java to fix CVE-2025-12183")
4039
}
4140
}
4241
}

kafka-bom/build.gradle.kts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ plugins {
33
id("org.hypertrace.publish-plugin")
44
}
55

6-
76
var confluentVersion = "7.9.5"
87
var confluentCcsVersion = "$confluentVersion-ccs"
98
var protobufVersion = "3.25.8"
@@ -25,10 +24,6 @@ dependencies {
2524
api("org.apache.commons:commons-lang3:3.18.0") {
2625
because("CVE-2025-48924 is fixed in 3.18.0")
2726
}
28-
api("org.lz4:lz4-java:1.8.1") {
29-
because("[https://nvd.nist.gov/vuln/detail/CVE-2025-12183] in org.lz4:lz4-java:1.8.0")
30-
because("CVE-2025-12183 is fixed in 1.8.1")
31-
}
3227

3328
api("io.confluent:kafka-streams-avro-serde:$confluentVersion")
3429
api("io.confluent:kafka-protobuf-serializer:$confluentVersion")

0 commit comments

Comments
 (0)