Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions sdks/java/extensions/sql/expansion-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ configurations.runtimeClasspath {
// Pin avro to 1.11.4 due to https://github.com/apache/beam/issues/34968
// cannot upgrade this to the latest version due to https://github.com/apache/beam/issues/34993
resolutionStrategy.force 'org.apache.avro:avro:1.11.4'

// Force jetty-http to a newer version to remediate a vulnerability in Jetty 9.
// It is a transitive dependency of Hadoop.
// This may cause runtime errors if we trigger Hadoop codepaths where this dep is used.
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'org.eclipse.jetty' && details.requested.name == 'jetty-http') {
details.useVersion('12.0.12')
}
}
}

description = "Apache Beam :: SDKs :: Java :: SQL :: Expansion Service"
Expand Down
12 changes: 5 additions & 7 deletions sdks/java/io/expansion-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,14 @@ configurations.runtimeClasspath {
// force parquet-avro:1.15.2 to fix CVE-2025-46762
resolutionStrategy.force 'org.apache.parquet:parquet-avro:1.15.2'

// Pin Jetty version due to hadoop 3.4.1 using 9.4.53.v20231009, which had
// two direct vulnerabilities. There is one dependency vulnerability left
// in 9.4.57.v20241919. Higher major versions are not allowed due to
// incompability with hadoop 3.4.1.
// Force jetty-http to a newer version to remediate a vulnerability in Jetty 9.
// It is a transitive dependency of Hadoop.
// This may cause runtime errors if we trigger Hadoop codepaths where this dep is used.
resolutionStrategy.eachDependency { details ->
if (details.requested.group.startsWith('org.eclipse.jetty')) {
details.useVersion('9.4.57.v20241219')
if (details.requested.group == 'org.eclipse.jetty' && details.requested.name == 'jetty-http') {
details.useVersion('12.0.12')
}
}

// Pin logback to 1.5.27 to resolve CVE-2026-1225
resolutionStrategy.force "ch.qos.logback:logback-classic:1.5.27"
resolutionStrategy.force "ch.qos.logback:logback-core:1.5.27"
Expand Down
Loading