Skip to content

Commit 20ebe86

Browse files
committed
Update pom.xml dependencies for security fixes and enable tests in the build process
1 parent ba2548a commit 20ebe86

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

pom.xml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,13 @@
172172
<artifactId>json-simple</artifactId>
173173
<version>${json-simple-version}</version>
174174
<scope>compile</scope>
175+
<!-- Exclude junit - it was incorrectly included as compile dep in json-simple -->
176+
<exclusions>
177+
<exclusion>
178+
<groupId>junit</groupId>
179+
<artifactId>junit</artifactId>
180+
</exclusion>
181+
</exclusions>
175182
</dependency>
176183

177184
<dependency>
@@ -215,6 +222,34 @@
215222
<artifactId>kotlin-stdlib</artifactId>
216223
<version>2.1.0</version>
217224
</dependency>
225+
<!-- Fix CVE-2025-48924: Uncontrolled Recursion in commons-lang3 -->
226+
<dependency>
227+
<groupId>org.apache.commons</groupId>
228+
<artifactId>commons-lang3</artifactId>
229+
<version>3.18.0</version>
230+
</dependency>
231+
<!-- Fix Spring vulnerabilities from contentstack-utils transitive deps -->
232+
<dependency>
233+
<groupId>org.springframework</groupId>
234+
<artifactId>spring-core</artifactId>
235+
<version>6.2.11</version>
236+
</dependency>
237+
<dependency>
238+
<groupId>org.springframework</groupId>
239+
<artifactId>spring-beans</artifactId>
240+
<version>6.2.11</version>
241+
</dependency>
242+
<dependency>
243+
<groupId>org.springframework</groupId>
244+
<artifactId>spring-web</artifactId>
245+
<version>6.2.11</version>
246+
</dependency>
247+
<!-- Fix CVE-2020-15250: junit pulled by json-simple -->
248+
<dependency>
249+
<groupId>junit</groupId>
250+
<artifactId>junit</artifactId>
251+
<version>4.13.2</version>
252+
</dependency>
218253
</dependencies>
219254
</dependencyManagement>
220255
<build>

src/test/java/com/contentstack/sdk/TestEntryModel.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ void testConstructorWithPublishDetails() {
254254
JSONObject publishDetails = new JSONObject();
255255
publishDetails.put("environment", "production");
256256
publishDetails.put("time", "2024-01-01T00:00:00.000Z");
257+
// file deepcode ignore NoHardcodedCredentials/test: <please specify a reason of ignoring this>
257258
publishDetails.put("user", "user123");
258259

259260
JSONObject json = new JSONObject();

0 commit comments

Comments
 (0)