{"id":"CVE-2019-9843","published":"2019-03-15T23:00:00Z","modified":"2024-08-04T22:01:55Z","title":"In DiffPlug Spotless before 1.20.0 (library and Maven plugin) and before 3.20.0 (Gradle plugin), the XML parser would…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01499,"percentile":0.74895,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/diffplug/spotless/blob/master/plugin-maven/CHANGES.md#version-1200---march-14th-2018-javadoc-jcenter","tags":["x_refsource_MISC"]},{"url":"https://github.com/diffplug/spotless/issues/358","tags":["x_refsource_MISC"]},{"url":"https://github.com/diffplug/spotless/blob/master/plugin-gradle/CHANGES.md#version-3200---march-11th-2018-javadoc-jcenter","tags":["x_refsource_MISC"]},{"url":"https://github.com/diffplug/spotless/pull/369","tags":["x_refsource_MISC"]},{"url":"https://lists.apache.org/thread.html/r7406e297228c42deeecdd12a576e39d63073faebf14b027b7608fdfd%40%3Cissues.iceberg.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":14.98}]},"affected":[{"ecosystem":"Maven","package":"com.diffplug.spotless:spotless-plugin-gradle","vulnerableRanges":["<3.20.0"],"patched":["3.20.0"],"from":["GHSA-7v35-qwwj-p98g"],"provenance":"source"},{"ecosystem":"Maven","package":"com.diffplug.spotless:spotless-maven-plugin","vulnerableRanges":["<1.20.0"],"patched":["1.20.0"],"from":["GHSA-7v35-qwwj-p98g"],"provenance":"source"}],"summary":{"text":"The flaw is in DiffPlug Spotless, affecting its library and Maven plugin before 1.20.0 and its Gradle plugin before 3.20.0, where the XML parser resolves external entities over HTTP and HTTPS and ignores the resolveExternalEntities setting. An attacker positioned as a man-in-the-middle can disclose file contents when a victim runs a spotlessApply operation on an untrusted XML file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:45:21Z"},"euvd":{"id":"EUVD-2019-0583","exploited":false,"provenance":"source"}}