Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spring-beans vulnerability CVE-2022-22965 #97

Closed
giorgioscia opened this issue Oct 20, 2023 · 4 comments · Fixed by #100
Closed

spring-beans vulnerability CVE-2022-22965 #97

giorgioscia opened this issue Oct 20, 2023 · 4 comments · Fixed by #100

Comments

@giorgioscia
Copy link

Hi there,

Unable to use test-extensions within my org as it has dependency on vulnerable version of spring-beans CVE-2022-22965. Is there any plan to upgrade in the near future?

Many thanks! :)

[1] SNYK-JAVA-ORGSPRINGFRAMEWORK-2436751
[2] CVE-2022-22965

@Chessray
Copy link
Collaborator

Chessray commented Oct 20, 2023

There should be no risk of this vulnerability affecting your project as this is merely a testing support library. The dependencies are consciously kept on a low minimum version in order to allow maximum compatibility. My best suggestion is that you try to adjust the project configuration so that the transitive dependency gets replaced by a different one or find a way within your organization to ignore this for testing purposes.

@giorgioscia
Copy link
Author

Unfortunately to use an external artifact within the org, it has to go through automated sign-off and it's failing due to the vulnerability

@Chessray
Copy link
Collaborator

Chessray commented Oct 21, 2023

In that case, why don't you copy the code into your own repo and use a later Spring version as dependency? The test extensions module is very small and unlikely to receive many changes over the years, so should be easy enough to maintain.

@filiphr
Copy link
Member

filiphr commented Nov 26, 2023

@giorgioscia usually in a Spring project you would use the Spring Boot dependency management or the Spring Framework BOM. This means that irregardless of what a dependency is using it would take the version that you want.

On a side note @Chessray, should we perhaps make the dependency as provided? If you are using this library you would for sure have spring-beans available. If you do not then there is no point in using the extension anyways :). What do you think? Maybe do this in a separate issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants