Skip to content

Commit dff4635

Browse files
authored
Merge pull request #245 from contentstack/fix-snyk-issue
Fix snyk issue
2 parents ba2548a + 31a350f commit dff4635

File tree

4 files changed

+47
-6
lines changed

4 files changed

+47
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGELOG
22

3+
## v2.3.2
4+
5+
### Jan 05, 2026
6+
- Snyk Fixes
7+
38
## v2.3.1
49

510
### Date: 03-Nov-2025

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012 - 2025 Contentstack
3+
Copyright (c) 2012 - 2026 Contentstack
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

pom.xml

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.contentstack.sdk</groupId>
77
<artifactId>java</artifactId>
8-
<version>2.3.1</version>
8+
<version>2.3.2</version>
99
<packaging>jar</packaging>
1010
<name>contentstack-java</name>
1111
<description>Java SDK for Contentstack Content Delivery API</description>
@@ -20,8 +20,8 @@
2020
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
2121
<maven-javadoc-plugin.version>3.4.1</maven-javadoc-plugin.version>
2222
<dotenv-source.version>3.0.0</dotenv-source.version>
23-
<rxjava-source.version>3.1.10</rxjava-source.version>
24-
<retrofit-source.version>2.11.0</retrofit-source.version>
23+
<rxjava-source.version>3.1.11</rxjava-source.version>
24+
<retrofit-source.version>3.0.0</retrofit-source.version>
2525
<loggin.version>5.1.0</loggin.version>
2626
<jococo-plugin.version>0.8.5</jococo-plugin.version>
2727
<lombok-source.version>1.18.36</lombok-source.version>
@@ -172,12 +172,19 @@
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>
178185
<groupId>com.fasterxml.jackson.core</groupId>
179186
<artifactId>jackson-databind</artifactId>
180-
<version>2.18.2</version>
187+
<version>2.19.2</version>
181188
</dependency>
182189
<dependency>
183190
<groupId>com.slack.api</groupId>
@@ -187,7 +194,7 @@
187194
<dependency>
188195
<groupId>org.jetbrains</groupId>
189196
<artifactId>annotations</artifactId>
190-
<version>24.0.1</version>
197+
<version>26.0.2</version>
191198
</dependency>
192199
<dependency>
193200
<groupId>com.squareup.okhttp3</groupId>
@@ -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)