High, CVSS 7.5MavenPublished
Improper Restriction of XML External Entity Reference in DiffPlug Spotless
CVE-2019-9843 · GHSA-7v35-qwwj-p98g
- Affected
- Maven com.diffplug.spotless:spotless-maven-plugin < 1.20.0
- Fixed in
- 1.20.0· Vendor fix available
- Issue
- 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.
Recommended action: Upgrade to 1.20.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.