WaratekVRT Sign in

CVE-2019-9843

Affected software2 products, listed below
Severity7.5 High CVSS 3.0 2 scores
Fixed in3.20.0
WeaknessXML external entity (XXE) (CWE-611)
Published28 Jun 2019
Updated17 Jun 2026

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 7 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC none indexed
  • EPSS 1.5% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

  • Protection full XXE
  • Action available security rule
  • Review automated Inferred
  • Record active
Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR xxe security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-611: XML External Entity Reference.
Candidate fix https://github.com/diffplug/spotless/pull/369 : a pull request: the change under review

How to mitigate CVE-2019-9843

Upgrade the affected software to 3.20.0 or later. Until you can, Waratek RASP blocks exploitation with its XXE rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

7.5 HIGH v3.0 CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.0 7.5 HIGH CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H NVD Primary published
CVSS 2.0 5.1 none AV:N/AC:H/Au:N/C:P/I:P/A:P NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
com.diffplug.spotless:spotless-plugin-gradle 0 3.20.0 unbounded
com.diffplug.spotless:spotless-maven-plugin 0 1.20.0 unbounded

Products and versions

4 products, 4 version entries
SourceVendorProductSchemeAffected versions
osv com.diffplug.spotless spotless-maven-plugin generic < 1.20.0
osv com.diffplug.spotless spotless-plugin-gradle generic < 3.20.0
nvd diffplug gradle generic < 3.20.0
nvd diffplug maven generic < 1.20.0

References

URLTags
https://github.com/diffplug/spotless/pull/369 pr
https://github.com/diffplug/spotless/issues/358 WEB
https://github.com/diffplug/spotless PACKAGE
https://github.com/diffplug/spotless/blob/master/plugin-gradle/CHANGES.md#version-3200---march-11th-2018-javadoc-jcenter WEB
https://github.com/diffplug/spotless/blob/master/plugin-maven/CHANGES.md#version-1200---march-14th-2018-javadoc-jcenter WEB
https://lists.apache.org/thread.html/r7406e297228c42deeecdd12a576e39d63073faebf14b027b7608fdfd%40%3Cissues.iceberg.apache.org%3E

Timeline

Published2019-06-28By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.