Moderate severityOSV Advisory· Published Jan 30, 2020· Updated Aug 4, 2024
CVE-2019-10782
CVE-2019-10782
Description
All versions of com.puppycrawl.tools:checkstyle before 8.29 are vulnerable to XML External Entity (XXE) Injection due to an incomplete fix for CVE-2019-9658.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
com.puppycrawl.tools:checkstyleMaven | < 8.29 | 8.29 |
Affected products
1- Range: bcel, checkstyle-4.4, checkstyle-5.2, …
Patches
1c46a16d177e6Issue #7468: disable 'external-parameter-entities' feature by default
1 file changed · +4 −0
src/main/java/com/puppycrawl/tools/checkstyle/XmlLoader.java+4 −0 modified@@ -124,6 +124,9 @@ public static final class LoadExternalDtdFeatureProvider { /** Feature that enables including external general entities in XML files. */ public static final String EXTERNAL_GENERAL_ENTITIES = "http://xml.org/sax/features/external-general-entities"; + /** Feature that enables including external parameter entities in XML files. */ + public static final String EXTERNAL_PARAMETER_ENTITIES = + "http://xml.org/sax/features/external-parameter-entities"; /** Stop instances being created. **/ private LoadExternalDtdFeatureProvider() { @@ -146,6 +149,7 @@ public static void setFeaturesBySystemProperty(SAXParserFactory factory) factory.setFeature(LOAD_EXTERNAL_DTD, enableExternalDtdLoad); factory.setFeature(EXTERNAL_GENERAL_ENTITIES, enableExternalDtdLoad); + factory.setFeature(EXTERNAL_PARAMETER_ENTITIES, enableExternalDtdLoad); } }
Vulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
9- github.com/advisories/GHSA-763g-fqq7-48wgghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2019-10782ghsaADVISORY
- github.com/checkstyle/checkstyle/commit/c46a16d177e6797895b195c288ae9a9a096254b8ghsaWEB
- github.com/checkstyle/checkstyle/issues/7468ghsaWEB
- github.com/checkstyle/checkstyle/security/advisories/GHSA-763g-fqq7-48wgghsaWEB
- lists.apache.org/thread.html/r8aaf4ee16bbaf6204731d4770d96ebb34b258cd79b491f9cdd7f2540%40%3Ccommits.nifi.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/r8aaf4ee16bbaf6204731d4770d96ebb34b258cd79b491f9cdd7f2540@%3Ccommits.nifi.apache.org%3EghsaWEB
- lists.debian.org/debian-lts-announce/2020/02/msg00008.htmlghsamailing-listx_refsource_MLISTWEB
- snyk.io/vuln/SNYK-JAVA-COMPUPPYCRAWLTOOLS-543266ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.