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

Vulnerabilities with jsoup in vscode-java #3859

Open
ayoubhessoune opened this issue Nov 14, 2024 · 4 comments
Open

Vulnerabilities with jsoup in vscode-java #3859

ayoubhessoune opened this issue Nov 14, 2024 · 4 comments
Assignees
Labels
dependencies Pull requests that update a dependency file

Comments

@ayoubhessoune
Copy link

ayoubhessoune commented Nov 14, 2024

Vulnerabilities in Dependencies in vscode-java

Description

vscode-java has security vulnerabilities in its dependencies, specifically jsoup . The affected and patched versions are as follows:

1. Jsoup

  • Affected versions:
    • < 1.15.3
  • Patched versions:
    • 1.15.3

GitHub Advisory Links

National Vulnerability Database

Request

Could these dependencies be updated to the patched versions in vscode-java v1.20.0 and above? Thank you.

@rgrunber rgrunber self-assigned this Nov 15, 2024
@rgrunber rgrunber added the dependencies Pull requests that update a dependency file label Nov 15, 2024
@rgrunber
Copy link
Member

I just had a look at this, and I don't think we can continue using Remark and jsoup.

jsoup is a dependency through Remark, which is now archived, and hasn't had an update. The problem is that jsoup 1.15.4 is binary incompatible with the last release of Remark. It continues to use the Whitelist class from 1.14.3 that is no longer present in 1.15.4.

I have seen forks of remark-java that fix the jsoup dependency, but I just don't think this is sustainable long term. We should probably consider moving to flexmark-java eclipse-jdtls/eclipse.jdt.ls#2214 .

We don't do backports for releases though. It would just be updated in the next available version (eg. 1.37.0).

@ayoubhessoune
Copy link
Author

Can you Please give me an approximate timeframe for the release?
Thank you

@rgrunber
Copy link
Member

We usually release once at the end of each month : https://github.com/redhat-developer/vscode-java/milestones?state=closed . With that said, according to the CVE, disabling SafeList.preserveRelativeLinks is an option to prevent this without upgrading. However, this has always been the case, since we don't set it, and it's disabled by default.

@ayoubhessoune
Copy link
Author

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

2 participants