CVE Watchtower

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
Severity Level
HIGH(8.6)
Published Date
Nov 23, 2026
Last Modified
Nov 23, 2026
Exploitation Status
No confirmed exploitation yet
CVE Record Status
Reserved
This CVE ID is referenced in a public advisory, but the CVE Program has not published its official CVE Record yet. Full CVSS/CPE data from NVD will appear here once it does.
Root Weakness (CWE)
The product does not properly neutralize special elements that are used in XML, allowing attackers to modify the syntax, content, or commands of the XML before it is processed by an end system.
The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control.
The web server receives a URL or similar request from an upstream component and retrieves its contents, but does not sufficiently ensure that the request is being sent to the expected destination.
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:N
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeChanged
ConfidentialityHigh
IntegrityNone
AvailabilityNone

Affected & Patched Versions

Affected 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
Patched Versions
  • 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.

  1. Check whether you run org.geoserver:gs-wfs-core and which version.
  2. 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 alerts

Data last checked: Nov 24, 2026 14:01 UTC