High

Improper Restriction of XML External Entity Reference in DiffPlug Spotless

  • Disclosed: 05.07.2019
  • Updated: 11.10.2026 11:21

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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) com.diffplug.spotless:spotless-maven-plugin < 1.20.0 1.20.0
Java / Kotlin (Maven) com.diffplug.spotless:spotless-plugin-gradle < 3.20.0 3.20.0

References

CVSS score 7.5/10
CVSS vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-611
Platform
Java / Kotlin (Maven)
Package
com.diffplug.spotless:spotless-maven-plugin, com.diffplug.spotless:spotless-plugin-gradle
Disclosed
05.07.2019
Updated
11.10.2026 11:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-7v35-qwwj-p98g - CC BY 4.0

Vulnerability history: com.diffplug.spotless:spotless-plugin-gradle

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

This is the only known vulnerability of this package.

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.