Skip to content

Commit 7cba11b

Browse files
Update dependencies to fix CVE-2024-7254, CVE-2024-36114 & CVE-2024-53990 (#107)
* deps: Update dependencies to fix CVE-2024-7254, CVE-2024-36114 & CVE-2024-53990 * Add explanation comment and scope. * Remove the runtime scope for protobuf & async-http-client * CI fix & remove unwanted exclusion * Updated confluent/kafka image version to use 7.8.2 as the latest(7.9.0) is not supported yet. --------- Co-authored-by: mallasandeep <[email protected]>
1 parent c5d04e4 commit 7cba11b

File tree

3 files changed

+25
-5
lines changed

3 files changed

+25
-5
lines changed

ci/init_hydra_oauth_server.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ wait_for_url() {
3333
}
3434

3535
# Start hydra server
36-
docker-compose -f ci/hydra/docker-compose.yml up -d
36+
docker compose -f ci/hydra/docker-compose.yml up -d
3737

3838
# Wait until the hydra server started
3939
wait_for_url "http://localhost:4445/clients" "Waiting for Hydra admin REST to start"

pom.xml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@
6868
<fusionauth-jwt.version>5.2.1</fusionauth-jwt.version>
6969
<snakeyaml.version>2.0</snakeyaml.version>
7070
<zstd-jni.version>1.5.2-4</zstd-jni.version>
71-
71+
<asynchttpclient.version>2.12.4</asynchttpclient.version>
72+
<aircompressor.version>0.27</aircompressor.version>
73+
<protobuf.version>3.25.5</protobuf.version>
7274
<!-- plugin dependencies -->
7375
<license-maven-plugin.version>3.0.rc1</license-maven-plugin.version>
7476
<maven-checkstyle-plugin.version>3.1.1</maven-checkstyle-plugin.version>
@@ -126,7 +128,25 @@
126128
<artifactId>kafka-clients</artifactId>
127129
<version>${kafka.version}</version>
128130
</dependency>
129-
131+
<!-- Override transitive dependency version to fix vulnerability -->
132+
<dependency>
133+
<groupId>io.airlift</groupId>
134+
<artifactId>aircompressor</artifactId>
135+
<version>${aircompressor.version}</version>
136+
<scope>runtime</scope>
137+
</dependency>
138+
<!-- Override transitive dependency version to fix vulnerability -->
139+
<dependency>
140+
<groupId>com.google.protobuf</groupId>
141+
<artifactId>protobuf-java</artifactId>
142+
<version>${protobuf.version}</version>
143+
</dependency>
144+
<!-- Override transitive dependency version to fix vulnerability -->
145+
<dependency>
146+
<groupId>org.asynchttpclient</groupId>
147+
<artifactId>async-http-client</artifactId>
148+
<version>${asynchttpclient.version}</version>
149+
</dependency>
130150
<dependency>
131151
<groupId>${pulsar.group.id}</groupId>
132152
<artifactId>pulsar-broker</artifactId>

tests/src/test/java/io/streamnative/pulsar/handlers/kop/docker/DockerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public class DockerTest {
3030

3131
private static final String IMAGE_LUNASTREAMING31 = "datastax/lunastreaming:3.1";
3232
private static final String IMAGE_PULSAR31 = "apachepulsar/pulsar:3.1.1";
33-
private static final String CONFLUENT_CLIENT = "confluentinc/cp-kafka:latest";
34-
private static final String CONFLUENT_SCHEMAREGISTRY_CLIENT = "confluentinc/cp-schema-registry:latest";
33+
private static final String CONFLUENT_CLIENT = "confluentinc/cp-kafka:7.8.2";
34+
private static final String CONFLUENT_SCHEMAREGISTRY_CLIENT = "confluentinc/cp-schema-registry:7.8.2";
3535

3636
@Test
3737
public void test() throws Exception {

0 commit comments

Comments
 (0)