diffplug / spotless

Keep your code spotless
Apache License 2.0
4.49k stars 455 forks source link

Plugins use dependencies that trigger CVEs #2166

Open binkley opened 3 months ago

binkley commented 3 months ago

If you are submitting a bug, please include the following:

If you're just submitting a feature request or question, no need for the above.

Summary

An accidental discovery: making Spotless a dependency instead of a plugin (yes, it was a mistake) turned up multiple CVEs from DependencyCheck. This tells me 2 things:

Obviously, this is a user goof, however, it tells me that Spotless may need to refresh/update dependencies for the plugins. On the other hand, some of these may be build-only dependencies for the plugin? Either way, there are some outdated dependencies in the plugin.

CVEs with 2.43.0:

My issue post focuses on the Maven plugin. I haven't tried doing the same with the Gradle plugin.

Maven version

3.9.6

Spotless version

2.43.0

OS version

Not relevant, however "Linux Hobbiton 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux" running Ubuntu under WSL2 on Windows 11.

Spotless configuration block

No configuration block provided.

Console output

I wanted to paste the full ./mvnw -X verify output, however two problems:

nedtwigg commented 3 months ago

Regarding each in turn

binkley commented 3 months ago

@nedtwigg Sounds like y'all are on top of this already. Again, thanks for considering an Issue that is the result of clear user error. 😄