What’s Vulnerable › Vulnerabilities

CVE-2019-9843

Description

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.

Affected products

How to fix

Upgrade to a fixed version: Diffplug Gradle 3.20.0; Diffplug Maven 1.20.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2019-9843 or the next vulnerability affects your stack