Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Feat/springdocs upgrade (#15)
Browse files Browse the repository at this point in the history
* Migration to Springdoc 2

* Migration to Springdoc 2

* Explicit import of newer version of fileupload to fix CVE-2023-24998

* Added another h2 CVE suppression since still only used for testing

* Added false positive for guava

* Removed version since it's managed at parent

* Moved version since it's managed at parent
  • Loading branch information
Morphyum authored Mar 15, 2023
1 parent 0809116 commit 964f6a3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
6 changes: 6 additions & 0 deletions feign/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,15 @@
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>

<dependency>
<groupId>io.github.openfeign</groupId>
<artifactId>feign-httpclient</artifactId>
</dependency>
<!-- To satisfy CVE-2023-24998 happening in openfeign -->
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
</dependency>
</dependencies>
</project>
6 changes: 6 additions & 0 deletions owasp/suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@
<suppress>
<notes>H2 is only used for testing, not production</notes>
<cve>CVE-2022-45868</cve>
<cve>CVE-2018-14335</cve>
</suppress>

<suppress>
<notes>False positive. CVE is matching for hutools. OWASP Check matches for json-lib</notes>
<cve>CVE-2022-45688</cve>
</suppress>

<suppress>
<notes>False positive. guava version is higher than 30.0 and this CVE should not match</notes>
<cve>CVE-2020-8908</cve>
</suppress>

</suppressions>
9 changes: 7 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.6.14</version>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.0.4</version>
</dependency>


Expand Down Expand Up @@ -117,6 +117,11 @@
<version>3.6.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.5</version>
</dependency>


<!-- JJWT -->
Expand Down
2 changes: 1 addition & 1 deletion spring-boot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<!-- Documentation -->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
</dependency>

<!-- Test -->
Expand Down

0 comments on commit 964f6a3

Please sign in to comment.