## Overview
GeoServer has a high-severity vulnerability, CVE-2026-120705, that allows unauthenticated attackers to exploit the system. This issue affects versions prior to 2.27.7, 2.28.6, and 3.0.2 of the `org.geoserver:gs-wfs-core` package, as well as earlier versions of `org.geotools:gt-metadata`.
## Technical Details
The vulnerability arises from the exposure of the built-in WFS 2.0 stored query `urn:ogc:def:query:OGC-WFS::GetFeatureById` through the public GetFeature operation. The stored query improperly substitutes the caller's ID parameter into an XML template without escaping it. This allows an attacker to inject malicious XML, including an `xi:include`, into the query. The parsing of this result occurs without GeoServer's entity resolver, increasing the risk of remote code execution (RCE).
## Impact
An unauthenticated caller can exploit this vulnerability to execute arbitrary XML payloads. This could lead to unauthorized access and control over the GeoServer instance, potentially compromising sensitive geospatial data. The U.S. CISA has added this vulnerability to its Known Exploited Vulnerabilities catalog, indicating active exploitation in the wild.
## Mitigation
Defenders should upgrade to the patched versions of GeoServer: `org.geoserver:gs-wfs-core` versions 2.27.7, 2.28.6, or 3.0.2, and `org.geotools:gt-metadata` versions 33.7, 34.6, or 35.2. Immediate patching is crucial to protect against potential exploitation, as several reports indicate that attackers are actively targeting this vulnerability.
CSURFACE Threat Sensor