Skip to content

Commit 6bce0c6

Browse files
Fixing Swagger 2.1.36 CVE (#1045)
Signed-off-by: Ricardo Zanini <[email protected]>
1 parent 0016fff commit 6bce0c6

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

impl/openapi/pom.xml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
23
<modelVersion>4.0.0</modelVersion>
34
<parent>
45
<groupId>io.serverlessworkflow</groupId>
@@ -7,6 +8,13 @@
78
</parent>
89
<artifactId>serverlessworkflow-impl-openapi</artifactId>
910
<name>Serverless Workflow :: Impl :: OpenAPI</name>
11+
12+
<properties>
13+
<version.org.mozilla.rhino>1.7.15.1</version.org.mozilla.rhino>
14+
<version.org.apache.commons.lang3>3.20.0</version.org.apache.commons.lang3>
15+
<version.commons.codec>1.20.0</version.commons.codec>
16+
</properties>
17+
1018
<dependencies>
1119
<dependency>
1220
<groupId>jakarta.ws.rs</groupId>
@@ -25,6 +33,25 @@
2533
<artifactId>swagger-parser</artifactId>
2634
<version>${version.io.swagger.parser.v3}</version>
2735
</dependency>
36+
37+
<!-- Swagger Parser brings a few dependencies with CVE, we are breaking them here -->
38+
<!-- Once they upgrade, we can remove -->
39+
<dependency>
40+
<groupId>org.mozilla</groupId>
41+
<artifactId>rhino</artifactId>
42+
<version>${version.org.mozilla.rhino}</version>
43+
</dependency>
44+
<dependency>
45+
<groupId>org.apache.commons</groupId>
46+
<artifactId>commons-lang3</artifactId>
47+
<version>${version.org.apache.commons.lang3}</version>
48+
</dependency>
49+
<dependency>
50+
<groupId>commons-codec</groupId>
51+
<artifactId>commons-codec</artifactId>
52+
<version>${version.commons.codec}</version>
53+
</dependency>
54+
2855
<dependency>
2956
<groupId>org.junit.jupiter</groupId>
3057
<artifactId>junit-jupiter-engine</artifactId>

0 commit comments

Comments
 (0)