CVE-2026-120705org.geoserver:gs-wfs-core XML Injection (aka Blind XPath Injection)
NVD
Vulnerability 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 substituted the caller's `ID` parameter into an XML template without escaping, then parsed the result without GeoServer's entity resolver. An unauthenticated caller could inject XML, including an `xi:include`, into the query. Impact A single unauthenticated WFS request can: read a local text file readable by the GeoServer process; fetch an attacker selected HTTP or HTTPS URL (server-side request forgery); receive the fetched text in the `Illegal property name` error response. No authentication, custom stored query or `CreateStoredQuery` access is required. Contents are echoed when a layer is published to anonymous users; otherwise the file is still read but not returned. Details `StoredQuery.compile()` replaced the `${ID}` token in the `GetFeatureById` template (`<fes:ResourceId rid='${ID}'/>`) using plain string replacement, so quotes and angle brackets in the value could close the `rid` attribute and add new FES elements. The result was parsed with `new Parser(new WFSConfiguration())` without the catalog entity resolver used elsewhere in the class, so XInclude and external entities were resolved with ordinary URI access. Mitigation Restrict or disable the WFS service for anonymous users using service security, or disable WFS if it is not required. Resolution Stored query parsing now uses the GeoServer entity resolver, and the GeoTools `PreventLocalEntityResolver` checks redirects. GeoServer 2.27.7, 2.28.6, 3.0.2 GeoTools 33.7, 34.6, 35.2 References https://osgeo-org.atlassian.net/browse/GEOS-12199 https://osgeo-org.atlassian.net/browse/GEOT-7938 https://github.com/geoserver/geoserver/pull/9928 https://github.com/geoserver/geoserver/security/advisories/GHSA-hgm3-wq4h-8vvq https://github.com/geoserver/geoserver/security/advisories/GHSA-rv5g-g2r9-58rj
CVSS v3.1 Base Metrics — Score 8.6
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:NAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeChanged
ConfidentialityHigh
IntegrityNone
AvailabilityNone
Affected & Patched Versions
- org.geoserver:gs-wfs-core <= 2.27.6
- org.geoserver:gs-wfs-core >= 2.28.0, <= 2.28.5
- org.geoserver:gs-wfs-core >= 3.0.0, <= 3.0.1
- org.geotools:gt-metadata <= 33.6
- org.geotools:gt-metadata >= 34.0, <= 34.5
- org.geotools:gt-metadata >= 35.0, <= 35.1
- org.geoserver:gs-wfs-core 2.27.7
- org.geoserver:gs-wfs-core 2.28.6
- org.geoserver:gs-wfs-core 3.0.2
- org.geotools:gt-metadata 33.7
- org.geotools:gt-metadata 34.6
- org.geotools:gt-metadata 35.2
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run org.geoserver:gs-wfs-core and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 23, 2026Published
- Nov 23, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new org.geoserver:gs-wfs-core CVEsYou are reading CVE-2026-120705. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Nov 24, 2026 14:01 UTC