CVE-2019-9843
Improper Restriction of XML External Entity Reference in DiffPlug Spotless
7.5
HIGH
CVSS 3.1
EPSS 0.33%
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.
How to fix CVE-2019-9843
To remediate CVE-2019-9843, upgrade the affected package to a fixed version below.
- —upgrade to 1.20.0 or later
- —upgrade to 3.20.0 or later
Is CVE-2019-9843 being exploited?
Low — EPSS is 0.3%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 1.20.0
- from 0, < 3.20.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
References (6)
- ADVISORYnvd.nist.gov/vuln/detail/CVE-2019-9843
- PATCHgithub.com/diffplug/spotless
- WEBgithub.com/diffplug/spotless/blob/master/plugin-gradle/CHANGES.md#version-3200---march-11th-2018-javadoc-jcenter
- WEBgithub.com/diffplug/spotless/blob/master/plugin-maven/CHANGES.md#version-1200---march-14th-2018-javadoc-jcenter