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

The last 10 versions share a common transitive vulnerability in org.eclipse.jgit-5.8.1.202007141445-r.jar #152

Closed
rbhuet2 opened this issue Feb 5, 2024 · 4 comments · Fixed by #157
Labels
bug Something isn't working

Comments

@rbhuet2
Copy link

rbhuet2 commented Feb 5, 2024

Describe the bug****To Reproduce
Steps to reproduce the behavior:

  1. Run gradle build with any of the last 10 versions of the plugin defined. For example:
    classpath "org.sonatype.gradle.plugins:scan-gradle-plugin:2.7.0"
    apply plugin: 'org.sonatype.gradle.plugins.scan'
  2. See error
    Could not GET 'https://nexus.xxx.com/repository/public/org/eclipse/jgit/org.eclipse.jgit/5.8.1.202007141445-r/org.eclipse.jgit- 5.8.1.202007141445-r.jar'. Received status code 403 from server: -------------------->>> REQUESTED ITEM IS QUARANTINED -------------------->>>
    Expected behavior
    The plugin should reference a version of jgit that does not have any critical vulnerabilities.

Screenshots

Desktop (please complete the following information):

  • OS: Windows 10
  • Gradle Version: [7.4.2]
  • JVM Version and Flavor [Open JDK 17]
  • Nexus IQ Server Version: [166]

Additional context

@rbhuet2 rbhuet2 added the bug Something isn't working label Feb 5, 2024
Copy link

github-actions bot commented Feb 5, 2024

Hi!

First of all, thank you for opening your first issue. Elementary, we appreciate all feedback that helps us continue improving this plugin.

As this is a community project we can't commit to official due dates for reviews and developing, but we're definitely committed to delivering services, integrations and plugins of top quality.

So please be patient, we will review your issue and get back to you as soon as we can!

Regards,
Sherlock Trunks 🐘

@guillermo-varela
Copy link
Contributor

Hi @rbhuet2!

From what I see, the JGit dependency comes from nexus-platform-api.

The latest version of nexus-platform-api already brings a JGit version without vulnerabilities, although upgrading that library brings a series of issues documented at #146

While I can't provide a due date, I can confirm that such upgrade will definitely be done and thanks to this issue we see now it needs to have a higher priority.

Thanks for bringing this into our attention!

@guillermo-varela
Copy link
Contributor

guillermo-varela commented Apr 26, 2024

Hi @rbhuet2!

@shaikhu came up with a solution to this JGit issue and now version 2.8.1 has been published:
https://github.com/sonatype-nexus-community/scan-gradle-plugin/releases/tag/2.8.1

Please let us know if this enables using the plugin on your environment.

@rbhuet2
Copy link
Author

rbhuet2 commented Apr 29, 2024

I just tested version 2.8.1 and it works perfectly. Thanks @shaikhu for the quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants