diffplug/spotless · Security

Improper Restriction of XML External Entity Reference in DiffPlug Spotless

GHSA ID
GHSA-7v35-qwwj-p98g
CVE ID
CVE-2019-9843
Severity
high
Published
Updated
CVSS
7.5 · CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v3
7.5 · CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

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.

CWEs

References