# GHSA-826p-4gcg-35vw: GeoTools has XML External Entity (XXE) Processing Vulnerability in XSD schema handling

- Severity: Critical 9.9 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-06-09T23:14:48.000Z
- Modified: 2026-02-04T04:28:18.471Z
- Related: CVE-2025-30220
- Weaknesses: CWE-611

## Description

### Summary

GeoTools Schema class use of Eclipse XSD library to represent schema data structure is vulnerable to XML External Entity (XXE) exploit.

### Impact

This 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).

This also impacts users of ``gt-wfs-ng`` DataStore where the ENTITY_RESOLVER connection parameter was not being used as intended.

### Resolution

GeoTools API change allows EntityResolver to be supplied to the following methods:

```java
Schemas.parse( location, locators, resolvers, uriHandlers, entityResolver);
Schemas.findSchemas(Configuration configuration, EntityResolver entityResolver);
```

With this API change the `gt-wfs-ng` WFS DataStore ENTITY_RESOLVER parameter is now used.

### Reference

* [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.

* [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.

(As written by GitHub Advisory Database.)

## Affected

- org.geotools:gt-xsd-core (Maven): from 33.0 before 33.1; from 32.0 before 32.3; from 29.0 before 31.7; before 28.6.1
- org.geotools:gt-wfs-ng (Maven): from 33.0 before 33.1; from 32.0 before 32.3; from 29.0 before 31.7; before 28.6.1

## References

- <https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-2p76-gc46-5fvc> (web)
- <https://github.com/geoserver/geoserver/security/advisories/GHSA-jj54-8f66-c5pc> (web)
- <https://github.com/geotools/geotools/security/advisories/GHSA-826p-4gcg-35vw> (web)
- <https://github.com/geotools/geotools> (package)

## Sources

- GitHub Advisory Database: [GHSA-826p-4gcg-35vw](https://github.com/advisories/GHSA-826p-4gcg-35vw), CC-BY-4.0, modified 2026-02-04

---

Page: https://cve.day/GHSA-826p-4gcg-35vw · Whole record: https://cve.day/GHSA-826p-4gcg-35vw.json · Rebuilt by cve.day 2026-11-25T22:56:27.242Z
