-
Notifications
You must be signed in to change notification settings - Fork 145
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
Update org.eclipse.xtend.lib
dependency to 2.28.0
or later to address CVE-2020-8908
#672
Comments
Hi @cherylking Thank you for the report. #529 has been trying to break the dependency on xbase.lib for a while. I think that would resolve this issue. However that has been ongoing for a while. It would be great if you are able to help review that change so we can break the dependency altogether. In the meantime, can you provide a PR to make that update as it looks like you have already done most of the analysis work required to get us there. I think the version is only defined here: https://github.com/eclipse/lsp4j/blob/f84db765ce5f232c899fe48b398a8eb6d67e4c1e/gradle/versions.gradle#L16 We can do a release 0.17.0 if needed. BTW. a few things about this:
|
@jonahgraham The xbase.lib lists a compile dependency on guava with no version in the pom.xml. It uses a bom for dependency management. That bom lists the following:
So it seems like a hard dependency. To address your feedback above:
As for reviewing the existing PR that removes the dependency, I don't have enough familiarity with lsp4j at this point. Regarding my creating a PR to use |
Yes, because you can't have 2 different versions of the same dependency (without shadowing or package-rewrite hacks), your concrete version in top pom.xml will overwrite version in xtext bom. mvn has a goal for dependencies list print (gradle has it either), you should be able to check it after pom.xml change. |
If @nixel2007 isn't enough to resolve your issue, then please do go ahead and make the PR. That will run the tests and do some API analysis to make sure everything is working as expected. |
Please note that this is only the dependency that we build and test against. From my experience, xbase.lib works fine with a more recent Guava version. You can override the version of that dependency in your local build for the time being. |
@jonahgraham I created a fork of this repo and updated the |
Thanks @cherylking for the info. I see that you have updated your code so that you aren't blocked here? OpenLiberty/liberty-language-server#122 I am not sure when someone on here will get to looking at this. If you do figure it out why it failed, we would be grateful for a PR. |
@jonahgraham I am not blocked currently, but we need to do some testing to make sure my overriding that transitive dependency doesn't break anything. I would like to keep this issue open as it seems like updating to a more recent Just wanted to post with my findings above so that you are aware it will take some investigation (that I unfortunately do not have time to do myself at this point). Thanks for your guidance and attention to this issue. |
@oehme any idea? |
might becaused by this https://github.com/eclipse/lsp4j/blob/5605ca82252833777dbef82ca13a403dbfb9d906/gradle/java-compiler-settings.gradle#L84
i also assume that this one is no longer needed |
@cdietrich yes, if you wanna upgrade xtend.lib, you need to remove (or update) that force rule for guava |
@cdietrich Removing that fixed it. Thanks for the pointer. I'll get a PR created later today. I wasn't sure about the other change you listed. The build was successful without changing that "Tooling" section in build.gradle. |
Our language server is currently using
org.eclipse.lsp4j:0.14.0
which ultimately depends onguava:27.1
. The low severity vulnerability CVE-2020-8908 has been detected by our Mend scan and indicates thatguava:30.0
or later must be used.The
org.eclipse.xtend.lib:2.28.0
andorg.eclipse.xtext.xbase:2.28.0
update the guava version to30.1
and would resolve this issue. Please consider updating the lsp4j artifacts to use a minimum of the2.28.0
version oforg.eclipse.xtend.lib
. Thank you for any attention to this matter.The text was updated successfully, but these errors were encountered: