CVE-2019-9843Diffplug Gradle
High 7.5 No auth needed
Follow: this CVE · Diffplug · Diffplug Gradle We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.0
- 7.5
- EPSS
- 1.5% probability of exploitation in 30 days · percentile 75
- Auth required
- No
- Published
- Jun 28, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-611
- Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Gradle.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | com.diffplug.spotless:spotless-maven-plugin |
< 1.20.0 |
1.20.0 |
— |
| Maven | com.diffplug.spotless:spotless-plugin-gradle |
< 3.20.0 |
3.20.0 |
— |
Per OSV / GitHub Advisories (GHSA-7v35-qwwj-p98g). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| diffplug | gradle | < 3.20.0 |
| diffplug | maven | < 1.20.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Issue Tracking Third Party Advisory
- github.com Issue Tracking Third Party Advisory
- lists.apache.org