Skip to content
OpenAdvisories
High · 7.5 CVE-2019-9843 EUVD-2019-0583GHSA-7v35-qwwj-p98g

Improper Restriction of XML External Entity Reference in DiffPlug Spotless

Published Mar 15, 2019 · Updated Aug 4, 2024 · Assigned by mitre

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 packages

EcosystemPackageAffectedFixedRecord
Maven com.diffplug.spotless:spotless-maven-plugin < 1.20.0 1.20.0 GHSA-7v35-qwwj-p98g
Maven com.diffplug.spotless:spotless-plugin-gradle < 3.20.0 3.20.0 GHSA-7v35-qwwj-p98g

References