GHSA-7v35-qwwj-p98g

Suggest an improvement
Source
https://github.com/advisories/GHSA-7v35-qwwj-p98g
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/07/GHSA-7v35-qwwj-p98g/GHSA-7v35-qwwj-p98g.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-7v35-qwwj-p98g
Aliases
Published
2019-07-05T21:07:40Z
Modified
2023-11-01T04:51:12.878976Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Improper Restriction of XML External Entity Reference in DiffPlug Spotless
Details

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.

Database specific
{
    "nvd_published_at": "2019-06-28T18:15:00Z",
    "github_reviewed_at": "2019-07-01T16:09:01Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-611"
    ]
}
References

Affected packages

Maven / com.diffplug.spotless:spotless-plugin-gradle

Package

Name
com.diffplug.spotless:spotless-plugin-gradle
View open source insights on deps.dev
Purl
pkg:maven/com.diffplug.spotless/spotless-plugin-gradle

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.20.0

Affected versions

3.*

3.0.0.BETA2
3.0.0.BETA3
3.0.0.RC1
3.0.0.RC2
3.0.0
3.1.0
3.2.0
3.3.0
3.3.1
3.3.2
3.4.0
3.4.1
3.5.0
3.5.1
3.5.2
3.6.0
3.7.0
3.8.0
3.9.0
3.10.0
3.12.0
3.13.0
3.14.0
3.15.0
3.16.0
3.17.0
3.18.0
3.19.0

Maven / com.diffplug.spotless:spotless-maven-plugin

Package

Name
com.diffplug.spotless:spotless-maven-plugin
View open source insights on deps.dev
Purl
pkg:maven/com.diffplug.spotless/spotless-maven-plugin

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.20.0

Affected versions

1.*

1.0.0.BETA1
1.0.0.BETA2
1.0.0.BETA3
1.0.0.BETA4
1.0.0.BETA5
1.13.0
1.14.0
1.15.0
1.16.0
1.17.0
1.18.0
1.19.0