GHSA-826p-4gcg-35vw: Gt xsd core GeoTools Has XML External Entity Vulnerability
CRITICALGHSA-826p-4gcg-35vw is a CRITICAL (CVSS 9.9) geotools has xml external entity vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Gt xsd core libraries in the Maven ecosystem. The issue involves geotools has xml external entity (xxe) processing vulnerability in xsd schema handling. Remediation is available by upgrading affected packages to version 33.1, 32.3, 31.7, 28.6.1.
GHSA-826p-4gcg-35vw at a Glance
Security Impact
CVSS: 9.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L).
How to Fix GHSA-826p-4gcg-35vw
To remediate this vulnerability, upgrade all affected Gt xsd core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-xsd-core</artifactId>
<version>33.1</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-xsd-core</artifactId>
<version>32.3</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-xsd-core</artifactId>
<version>31.7</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-wfs-ng</artifactId>
<version>33.1</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-wfs-ng</artifactId>
<version>32.3</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-wfs-ng</artifactId>
<version>31.7</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-xsd-core</artifactId>
<version>28.6.1</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-wfs-ng</artifactId>
<version>28.6.1</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.geotools
How to Check if You Are Affected
To determine whether your Java application is affected by GHSA-826p-4gcg-35vw, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.geotools
Analyze the terminal output to locate any version of Gt xsd core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 33.1), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.geotools command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. In Gt xsd core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-826p-4gcg-35vw Affected Gt xsd core Versions
8 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.geotools:gt-xsd-core
|
Maven |
≥ 33.0
< 33.1
All 1 versions
33.0
|
33.1
|
|
org.geotools:gt-xsd-core
|
Maven |
≥ 32.0
< 32.3
|
32.3
|
|
org.geotools:gt-xsd-core
|
Maven |
≥ 29.0
< 31.7
|
31.7
|
|
org.geotools:gt-wfs-ng
|
Maven |
≥ 33.0
< 33.1
|
33.1
|
|
org.geotools:gt-wfs-ng
|
Maven |
≥ 32.0
< 32.3
|
32.3
|
|
org.geotools:gt-wfs-ng
|
Maven |
≥ 29.0
< 31.7
|
31.7
|
|
org.geotools:gt-xsd-core
|
Maven |
< 28.6.1
|
28.6.1
|
|
org.geotools:gt-wfs-ng
|
Maven |
< 28.6.1
|
28.6.1
|
References
Frequently Asked Questions
What is GHSA-826p-4gcg-35vw?
Which Gt xsd core versions are affected?
What version fixes GHSA-826p-4gcg-35vw?
Is gt-xsd-core affected?
Is gt-wfs-ng affected?
What is the CVSS score of GHSA-826p-4gcg-35vw?
What CWE is associated with GHSA-826p-4gcg-35vw?
How can I check Maven dependencies for GHSA-826p-4gcg-35vw?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-826p-4gcg-35vw",
"modified" : "2025-06-09T23:14:48Z",
"published" : "2025-06-09T23:14:48Z",
"aliases" : [ ],
"summary" : "GeoTools has XML External Entity (XXE) Processing Vulnerability in XSD schema handling",
"details" : "### Summary\n\nGeoTools Schema class use of Eclipse XSD library to represent schema data structure is vulnerable to XML External Entity (XXE) exploit.\n\n### Impact\n\nThis impacts whoever exposes XML processing with ``gt-xsd-core`` involved in parsing, when the documents carry a reference to an external XML schema. The ``gt-xsd-core`` Schemas class is not using the EntityResolver provided by the ParserHandler (if any was configured).\n\nThis also impacts users of ``gt-wfs-ng`` DataStore where the ENTITY_RESOLVER connection parameter was not being used as intended.\n\n### Resolution\n\nGeoTools API change allows EntityResolver to be supplied to the following methods:\n\n```java\nSchemas.parse( location, locators, resolvers, uriHandlers, entityResolver);\nSchemas.findSchemas(Configuration configuration, EntityResolver entityResolver);\n```\n\nWith this API change the `gt-wfs-ng` WFS DataStore ENTITY_RESOLVER parameter is now used.\n\n### Reference\n\n* [GHSA-jj54-8f66-c5pc](https://github.com/geoserver/geoserver/security/advisories/GHSA-jj54-8f66-c5pc): Describes the impact of the ``gt-xsd-core`` vulnerability on the GeoServer WFS protocol, resulting in both Service Side Request Forgery (SSRF) and Out-of-Band (OOB) data exfiltration of local files.\n\n* [GHSA-2p76-gc46-5fvc](https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-2p76-gc46-5fvc): Describes the impact of the ``gt-wfs-ng`` and ``gt-xsd-core`` vulnerability on the GeoNetwork WFS Index functionality.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.geotools:gt-xsd-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "33.0"
}, {
"fixed" : "33.1"
} ]
} ],
"versions" : [ "33.0" ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.geotools:gt-xsd-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "32.0"
}, {
"fixed" : "32.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.geotools:gt-xsd-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "29.0"
}, {
"fixed" : "31.7"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 31.6"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.geotools:gt-wfs-ng"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "33.0"
}, {
"fixed" : "33.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.geotools:gt-wfs-ng"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "32.0"
}, {
"fixed" : "32.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.geotools:gt-wfs-ng"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "29.0"
}, {
"fixed" : "31.7"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 31.6"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.geotools:gt-xsd-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "28.6.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.geotools:gt-wfs-ng"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "28.6.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-2p76-gc46-5fvc"
}, {
"type" : "WEB",
"url" : "https://github.com/geoserver/geoserver/security/advisories/GHSA-jj54-8f66-c5pc"
}, {
"type" : "WEB",
"url" : "https://github.com/geotools/geotools/security/advisories/GHSA-826p-4gcg-35vw"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/geotools/geotools"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-611" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-09T23:14:48Z",
"nvd_published_at" : null
}
}