CVE-2019-9843
HIGH 7.5CVSS 3.0Improper Restriction of XML External Entity Reference in DiffPlug Spotless
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.
- Published
- 28 Jun 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-611
- Also known as
- GHSA-7v35-qwwj-p98g
- Sources
- NVDJSONOSV GHSA-7v35-qwwj-p98gJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.1 | AV:N/AC:H/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | diffplug | gradlecpe:2.3:a:diffplug:gradle:*:*:*:*:*:spotless:*:* |
< 3.20.0 | 3.20.0 |
| NVD | diffplug | mavencpe:2.3:a:diffplug:maven:*:*:*:*:*:spotless:*:* |
< 1.20.0 | 1.20.0 |
| OSV | Maven | com.diffplug.spotless:spotless-plugin-gradle | < 3.20.0 | 3.20.0 |
| OSV | Maven | com.diffplug.spotless:spotless-maven-plugin | < 1.20.0 | 1.20.0 |
References
- https://github.com/diffplug/spotless/blob/master/plugin-gradle/CHANGES.md#version-3200---march-11th-2018-javadoc-jcenter · Release Notes, Third Party Advisory, WEB
- https://github.com/diffplug/spotless/blob/master/plugin-maven/CHANGES.md#version-1200---march-14th-2018-javadoc-jcenter · Release Notes, Third Party Advisory, WEB
- https://github.com/diffplug/spotless/issues/358 · Issue Tracking, Third Party Advisory, WEB
- https://github.com/diffplug/spotless/pull/369 · Issue Tracking, Third Party Advisory, WEB
- https://lists.apache.org/thread.html/r7406e297228c42deeecdd12a576e39d63073faebf14b027b7608fdfd%40%3Cissues.iceberg.apache.org%3E
- https://nvd.nist.gov/vuln/detail/CVE-2019-9843 · ADVISORY
- https://github.com/diffplug/spotless · PACKAGE
History
- 25 Nov 2026 20:22 UTC · NVD: first stored (published 28 Jun 2019)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 5 Jul 2019)