| Package | Affected versions | Patched versions |
|---|---|---|
| com.diffplug.spotless:spotless-maven-plugin | < 1.20.0 | 1.20.0 |
| com.diffplug.spotless:spotless-plugin-gradle | < 3.20.0 | 3.20.0 |
| gradle | < 3.20.0 | 3.20.0 |
| maven | < 1.20.0 | 1.20.0 |
In DiffPlug Spotless before 1.20.0 (library and Maven plugin) and before 3.20.0 (Gradle plugin), the XML parser would resolve external entities over both HTTP and HTTPS and didn't respect the resolveExternalEntities setting. For example, this allows disclosure of file contents to a MITM attacker if a victim performs a spotlessApply operation on an untrusted XML file.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free