spring-cloud-kubernetes icon indicating copy to clipboard operation
spring-cloud-kubernetes copied to clipboard

Vulnerability report on dependency: com.squareup.okhttp3/logging-interceptor

Open heruan opened this issue 1 year ago • 1 comments

We have received a notification for a vulnerability in our project using spring-cloud-kubernetes-fabric8-config:jar:3.1.3. Details follow.

Vulnerabilities in: pkg:maven/com.squareup.okhttp3/[email protected] [CVE-2023-0833] (owasp)

+- com.vaadin:control-center-starter:jar:1.0-SNAPSHOT:compile
|  \- org.springframework.cloud:spring-cloud-starter-kubernetes-fabric8-config:jar:3.1.3:compile
|     \- org.springframework.cloud:spring-cloud-kubernetes-fabric8-config:jar:3.1.3:compile
|        +- io.fabric8:kubernetes-client:jar:6.9.2:compile
|        |  +- io.fabric8:kubernetes-httpclient-okhttp:jar:6.9.2:runtime
|        |  |  \- com.squareup.okhttp3:logging-interceptor:jar:3.12.12:runtime 

currently there is not released version from io.fabric8:kubernetes-client with fixes on the reported dependency.

heruan avatar Sep 12 '24 11:09 heruan

Upstream reference: https://github.com/fabric8io/kubernetes-client/issues/6344

heruan avatar Sep 12 '24 11:09 heruan

Fabric8 Kubernetes 7.0.0 has been released, but it looks like it missed Spring Cloud Kubernetes 3.2.0. Any chance to have the bump still in 3.2?

heruan avatar Dec 12 '24 11:12 heruan

No we cannot make a major change to a dependency in a minor of sc-kubernetes. We would need to do this in a major. We could ask them to backport it to the version of fabric8 we are using in 3.2 and see if they will do a release, then we can pick that up.

ryanjbaxter avatar Dec 17 '24 21:12 ryanjbaxter

Thanks for the feedback! So upgrade to Fabric8 Kubernetes 7.0 has to wait for Spring Cloud Kubernetes 4.0?

Frameworks like Java Operator SDK are adopting Fabric8 Kubernetes 7.0 already and an estimation for this to happen in Spring Cloud would be useful to lay out roadmaps for projects using both.

heruan avatar Dec 20 '24 07:12 heruan

The current plan is to have a GA release of our next major in November. See https://spring.io/blog/2024/10/01/from-spring-framework-6-2-to-7-0

ryanjbaxter avatar Dec 20 '24 14:12 ryanjbaxter

We ended up having to upgrade to Fabric8 7.0.x for 3.2.0 due to jackson compatibility issues. See https://github.com/spring-cloud/spring-cloud-kubernetes/pull/1924

ryanjbaxter avatar Jun 06 '25 13:06 ryanjbaxter