Skip to content

Commit 430241e

Browse files
* address CVEs CVE-2025-25193, CVE-2025-24970, CVE-2024-57699 Signed-off-by: Jing Zhang <[email protected]> * add exact version 2.5.2 for json-smart hardcode awssdk version to 2.30.18 Signed-off-by: Jing Zhang <[email protected]> --------- Signed-off-by: Jing Zhang <[email protected]> (cherry picked from commit 4d95466) Co-authored-by: Jing Zhang <[email protected]>
1 parent 909ea33 commit 430241e

File tree

4 files changed

+29
-17
lines changed

4 files changed

+29
-17
lines changed

common/build.gradle

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ dependencies {
3535
exclude group: 'com.google.j2objc', module: 'j2objc-annotations'
3636
exclude group: 'com.google.guava', module: 'listenablefuture'
3737
}
38-
compileOnly 'com.jayway.jsonpath:json-path:2.9.0'
38+
compileOnly ('com.jayway.jsonpath:json-path:2.9.0') {
39+
exclude group: 'net.minidev', module: 'json-smart'
40+
}
41+
compileOnly ('net.minidev:json-smart:2.5.2')
3942
compileOnly("com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}")
4043
compileOnly("com.fasterxml.jackson.core:jackson-databind:${versions.jackson_databind}")
4144
compileOnly group: 'com.networknt' , name: 'json-schema-validator', version: '1.4.0'

memory/build.gradle

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ dependencies {
4343
testImplementation("com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}")
4444
testImplementation("com.fasterxml.jackson.core:jackson-databind:${versions.jackson_databind}")
4545
testImplementation group: 'com.networknt' , name: 'json-schema-validator', version: '1.4.0'
46-
testImplementation 'com.jayway.jsonpath:json-path:2.9.0'
46+
testImplementation ('com.jayway.jsonpath:json-path:2.9.0') {
47+
exclude group: 'net.minidev', module: 'json-smart'
48+
}
49+
testImplementation('net.minidev:json-smart:2.5.2')
4750
}
4851

4952
test {

ml-algorithms/build.gradle

+11-8
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,24 @@ dependencies {
6767
}
6868
}
6969

70-
implementation platform('software.amazon.awssdk:bom:2.29.12')
71-
api 'software.amazon.awssdk:auth:2.29.12'
70+
implementation platform('software.amazon.awssdk:bom:2.30.18')
71+
api 'software.amazon.awssdk:auth:2.30.18'
7272
implementation 'software.amazon.awssdk:apache-client'
7373
implementation ('com.amazonaws:aws-encryption-sdk-java:2.4.1') {
7474
exclude group: 'org.bouncycastle', module: 'bcprov-ext-jdk18on'
7575
}
7676
implementation 'org.bouncycastle:bcprov-jdk18on:1.78.1'
7777

78-
compileOnly group: 'software.amazon.awssdk', name: 'aws-core', version: '2.29.12'
79-
compileOnly group: 'software.amazon.awssdk', name: 's3', version: '2.29.12'
80-
compileOnly group: 'software.amazon.awssdk', name: 'regions', version: '2.29.12'
78+
compileOnly group: 'software.amazon.awssdk', name: 'aws-core', version: "2.30.18"
79+
compileOnly group: 'software.amazon.awssdk', name: 's3', version: "2.30.18"
80+
compileOnly group: 'software.amazon.awssdk', name: 'regions', version: "2.30.18"
8181

82-
implementation 'com.jayway.jsonpath:json-path:2.9.0'
82+
implementation ('com.jayway.jsonpath:json-path:2.9.0') {
83+
exclude group: 'net.minidev', module: 'json-smart'
84+
}
85+
implementation('net.minidev:json-smart:2.5.2')
8386
implementation group: 'org.json', name: 'json', version: '20231013'
84-
implementation group: 'software.amazon.awssdk', name: 'netty-nio-client', version: '2.29.12'
87+
implementation group: 'software.amazon.awssdk', name: 'netty-nio-client', version: "2.30.18"
8588
testImplementation("com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}")
8689
testImplementation("com.fasterxml.jackson.core:jackson-databind:${versions.jackson_databind}")
8790
testImplementation group: 'com.networknt' , name: 'json-schema-validator', version: '1.4.0'
@@ -94,7 +97,7 @@ lombok {
9497
configurations.all {
9598
resolutionStrategy.force 'com.google.protobuf:protobuf-java:3.25.5'
9699
resolutionStrategy.force 'org.apache.commons:commons-compress:1.26.0'
97-
resolutionStrategy.force 'software.amazon.awssdk:bom:2.29.12'
100+
resolutionStrategy.force 'software.amazon.awssdk:bom:2.30.18'
98101
}
99102

100103

plugin/build.gradle

+10-7
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ dependencies {
5454
implementation project(':opensearch-ml-memory')
5555
compileOnly "com.google.guava:guava:32.1.3-jre"
5656

57-
implementation group: 'software.amazon.awssdk', name: 'aws-core', version: '2.29.12'
58-
implementation group: 'software.amazon.awssdk', name: 's3', version: '2.29.12'
59-
implementation group: 'software.amazon.awssdk', name: 'regions', version: '2.29.12'
57+
implementation group: 'software.amazon.awssdk', name: 'aws-core', version: "2.30.18"
58+
implementation group: 'software.amazon.awssdk', name: 's3', version: "2.30.18"
59+
implementation group: 'software.amazon.awssdk', name: 'regions', version: "2.30.18"
6060

61-
implementation group: 'software.amazon.awssdk', name: 'aws-xml-protocol', version: '2.29.12'
61+
implementation group: 'software.amazon.awssdk', name: 'aws-xml-protocol', version: "2.30.18"
6262

63-
implementation group: 'software.amazon.awssdk', name: 'aws-query-protocol', version: '2.29.12'
63+
implementation group: 'software.amazon.awssdk', name: 'aws-query-protocol', version: "2.30.18"
6464

65-
implementation group: 'software.amazon.awssdk', name: 'protocol-core', version: '2.29.12'
65+
implementation group: 'software.amazon.awssdk', name: 'protocol-core', version: "2.30.18"
6666

6767
zipArchive group: 'org.opensearch.plugin', name:'opensearch-job-scheduler', version: "${opensearch_build}"
6868
compileOnly "org.opensearch:opensearch-job-scheduler-spi:${opensearch_build}"
@@ -84,7 +84,10 @@ dependencies {
8484
implementation "org.apache.logging.log4j:log4j-slf4j-impl:2.19.0"
8585
testImplementation group: 'commons-io', name: 'commons-io', version: '2.15.1'
8686
implementation group: 'org.apache.commons', name: 'commons-text', version: '1.10.0'
87-
implementation 'com.jayway.jsonpath:json-path:2.9.0'
87+
implementation ('com.jayway.jsonpath:json-path:2.9.0') {
88+
exclude group: 'net.minidev', module: 'json-smart'
89+
}
90+
implementation('net.minidev:json-smart:2.5.2')
8891
}
8992

9093
publishing {

0 commit comments

Comments
 (0)