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

spring-cloud-starter-contract-stub-runner defines outdated sonatype sisu-inject-plexus version with vulnerability

Open juboe-kion opened this issue 11 months ago • 3 comments

Hi, it seems that the spring-cloud-starter-contract-stub-runner has a transitive dependency on plexus-utils:3.0.18. This version of plexus-utils seems to be vulnerable: https://avd.aquasec.com/nvd/2022/cve-2022-4244/

From what I can tell, this dependency comes from the following:

https://github.com/spring-cloud/spring-cloud-contract/blob/f320eb67513232250ee7fab69bd54940eb04974f/spring-cloud-contract-starters/spring-cloud-starter-contract-stub-runner/pom.xml#L80-L83


  • Could you investigate and update the version of sisu plexus?
  • Maybe it's even possible to remove the dependency on sisu-inject-plexus entirely?

Thanks in advance! 😄

juboe-kion avatar Jan 27 '25 10:01 juboe-kion

This is kind of unfortunate given 5.0.x is out now

I tried upgrading contract to 0.3.5 https://mvnrepository.com/artifact/org.eclipse.sisu/org.eclipse.sisu.plexus/0.3.5

But that results in conflicts with maven-resolver-api which uses 0.9.0.M4. We can upgrade to 0.9.0.M4 and the build passes but...

  1. This is a breaking change no matter what we do
  2. 0.9.0.M4 is a milestone

@marcingrzejszczak any thoughts on this?

ryanjbaxter avatar Dec 10 '25 19:12 ryanjbaxter

I haven't seen that library yet used directly in the pom. It's a transitive dependency of some other maven dependency (maven-embdder). When i removed it all the tests passed but i haven't checked the samples. I completely don't recall why I agreed that lib 🤷‍♂️

marcingrzejszczak avatar Dec 10 '25 19:12 marcingrzejszczak

@juboe-kion if you exclude sisu-inject-plexus does that mitigate the issue for you?

ryanjbaxter avatar Dec 10 '25 21:12 ryanjbaxter