HIGH 7.5

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)

ArtifactAffected versionsFixed 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

2affected artifacts
46affected versions
43dependent artifacts (est.)
1,199dependent versions

18% of the dependent artifacts (8) still pull an affected version in their latest release.

DepthDependent versions
Direct
503
2 hops
675
3 hops
21

Most used dependents

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.