Security mailing lists by PureSourceCode

CVE-2019-9843

HIGH 7.5CVSS 3.0

Improper Restriction of XML External Entity Reference in DiffPlug Spotless

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.

Published
28 Jun 2019
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-611
Also known as
GHSA-7v35-qwwj-p98g
Sources
NVDJSONOSV GHSA-7v35-qwwj-p98gJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.0 HIGH 7.5 CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.0 HIGH 7.5 CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.1 AV:N/AC:H/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD diffplug gradle
cpe:2.3:a:diffplug:gradle:*:*:*:*:*:spotless:*:*
< 3.20.0 3.20.0
NVD diffplug maven
cpe:2.3:a:diffplug:maven:*:*:*:*:*:spotless:*:*
< 1.20.0 1.20.0
OSV Maven com.diffplug.spotless:spotless-plugin-gradle < 3.20.0 3.20.0
OSV Maven com.diffplug.spotless:spotless-maven-plugin < 1.20.0 1.20.0

References

History

  • 25 Nov 2026 20:22 UTC · NVD: first stored (published 28 Jun 2019)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 5 Jul 2019)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.