Summary
GeoServer exposes the built-in WFS 2.0 stored query urn:ogc:def:query:OGC-WFS::GetFeatureById through the public GetFeature operation. The stored query inserts the caller-supplied ID parameter into an XML template without escaping. The result is then parsed without GeoServer's entity resolver. An attacker can therefore inject arbitrary XML, including xi:include, into the query (CWE-91).
Per the CVSS vector (8.6, High), the attack is network-based, low complexity, and requires no authentication or user interaction. Scope is changed, so the impact can extend to resources beyond the vulnerable component. The primary impact is a high loss of confidentiality, with no impact on integrity or availability.
The vulnerability is listed in the CISA KEV catalog (added 2026-11-27, due 2026-11-30), meaning it is actively exploited. Remediation is urgent.
Who is affected
Any organization running GeoServer with gs-wfs-core older than 2.27.7, 2.28.6 or 3.0.2, or GeoTools gt-metadata older than 33.7, 34.6 or 35.2, especially where WFS is internet-facing.
What to do
- Urgently upgrade GeoServer to 2.27.7, 2.28.6 or 3.0.2, depending on your release branch.
- If you use GeoTools separately, upgrade org.geotools:gt-metadata to 33.7, 34.6 or 35.2.
- Identify GeoServer instances and WFS endpoints exposed to the internet. Restrict access to them (e.g., firewall or VPN) until patched.
- Review logs for WFS GetFeature requests using GetFeatureById with unusual ID values (e.g., XML, xi:include). Perform forensic triage, as this vulnerability is actively exploited.
- Follow vendor advisory GHSA-39mw-5chv-jh47 for any further guidance.
Actively exploited (CISA KEV)
- Added to the catalog
- 27/11/2026
- Remediation due (CISA)
- 30/11/2026
- Required action
- Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Affects other components
- Confidentiality
- High impact
- Integrity
- None
- Availability
- None
Weakness type (CWE)
- CWE-91 XML Injection
References
- github.com/geoserver/geoserver/security/advisories/GHSA-39mw-5chv-jh47
- github.com/geoserver/geoserver/pull/9928
- github.com/geoserver/geoserver/releases/tag/2.27.7
- github.com/geoserver/geoserver/releases/tag/2.28.6
- github.com/geoserver/geoserver/releases/tag/3.0.2
- osgeo-org.atlassian.net/jira/browse/GEOS-12199
- osgeo-org.atlassian.net/jira/browse/GEOT-7938
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.