Unsafe Dependency Resolution Affecting com.diffplug.gradle.spotless:spotless-eclipse-groovy package, versions [,3.0.1)


0.0
medium

Snyk CVSS

    Attack Complexity High

    Threat Intelligence

    EPSS 0.07% (28th percentile)
Expand this section
NVD
5.9 medium

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JAVA-COMDIFFPLUGGRADLESPOTLESS-174876
  • published 29 Aug 2019
  • disclosed 22 Feb 2019
  • credit JLLeitschuh

How to fix?

Upgrade com.diffplug.gradle.spotless:spotless-eclipse-groovy to version 3.0.1 or higher.

Overview

com.diffplug.gradle.spotless:spotless-eclipse-groovy is a code formatting library.

Affected versions of this package are vulnerable to Unsafe Dependency Resolution due to resolving dependencies over an insecure channel (http).

If the build occurred over an insecure connection, a malicious user could have perform a Man-in-the-Middle attack during the build and alter the build artifacts that were produced. In case that any of these artifacts were compromised, any developers using these could be altered.

Note: In order to validate that this artifact was not compromised, the maintainer would need to confirm that none of the artifacts published to the registry were not altered with. Until this happens, we can not guarantee that this artifact was not compromised even though the probability that this happened is low.

We have chosen to alert on this issue when maintainers either decided to issue CVEs themselves, or in cases when maintainers decided against performing audits on there build to verify they had not been compromised.

References