CVE-2019-9843
Improper Restriction of XML External Entity Reference in DiffPlug Spotless
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 Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.diffplug.spotless » spotless-maven-plugin | < 1.20.0 | 1.20.0 |
| com.diffplug.spotless » spotless-plugin-gradle | < 3.20.0 | 3.20.0 |
Blast radius
18% of the dependent artifacts (8) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 503 |
| 2 hops | 675 |
| 3 hops | 21 |
Most used dependents
- com.palantir.baseline » gradle-baseline-java15 usages
- org.curioswitch.curiostack » gradle-curiostack-plugin14 usages
- org.yakworks » gradle-plugins11 usages
- com.bonitasoft.gradle » bonita-gradle-plugins8 usages
- org.yakworks » project7 usages
- io.beekeeper.gradle » beekeeper-formatter-plugin3 usages
- com.diffplug.gradle.spotless » com.diffplug.gradle.spotless.gradle.plugin2 usages
- gradle.plugin.org.yakworks » gradle-plugins2 usages
- org.ajoberstar » gradle-defaults1 usages
- org.minimallycorrect.gradle » DefaultsPlugin1 usages
- io.beekeeper.gradle » beekeeper-plugin1 usages
- us.eharning.gradle » gradle-defaults1 usages
- ru.itbasis.gradle.plugins » kotlin-assistant-config-project-plugin1 usages
- gradle.plugin.io.beekeeper.gradle » beekeeper-formatter-plugin1 usages
- yakworks.defaults » yakworks.defaults.gradle.plugin0 usages
Computed from the dependency graph of build 20261206.1433 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2019-9843 | nvd.nist.gov |
| Package | diffplug/spotless | github.com |
| Web | diffplug/spotless issue #358 | github.com |
| Web | diffplug/spotless pull request #369 | github.com |
| Web | diffplug/spotless CHANGES.md | github.com |
| Web | diffplug/spotless CHANGES.md | github.com |
