File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed
src/test/java/com/contentstack/sdk Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments