Live threats

All CVEs / Diffplug

CVE-2019-9843Diffplug Gradle

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gradle.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
diffpluggradle< 3.20.0
diffplugmaven< 1.20.0

Official sources

References

Links published by the sources. Open them with care.