HIGH 7.5 Maven

Improper Restriction of XML External Entity Reference in DiffPlug Spotless

GHSA-7v35-qwwj-p98g · CVE-2019-9843

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes