Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. com.diffplug.spotless/spotless-plugin-maven
  4. ›
  5. CVE-2019-9843

CVE-2019-9843: Improper Restriction of XML External Entity Reference

July 5, 2019 (updated July 6, 2021)

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.

References

  • github.com/advisories/GHSA-7v35-qwwj-p98g
  • github.com/diffplug/spotless/blob/master/plugin-gradle/CHANGES.md
  • github.com/diffplug/spotless/blob/master/plugin-maven/CHANGES.md
  • github.com/diffplug/spotless/issues/358
  • github.com/diffplug/spotless/pull/369
  • nvd.nist.gov/vuln/detail/CVE-2019-9843

Code Behaviors & Features

Detect and mitigate CVE-2019-9843 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.20.0

Fixed versions

  • 1.20.0

Solution

Upgrade to version 1.20.0 or above.

Impact 7.5 HIGH

CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-611: Improper Restriction of XML External Entity Reference

Source file

maven/com.diffplug.spotless/spotless-plugin-maven/CVE-2019-9843.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:13 +0000.