One request name reached two different security decisions
On 27 November 2026, CISA added two GeoServer flaws to its Known Exploited Vulnerabilities catalog: CVE-2026-129243, an authorization bypass, and CVE-2026-120705, an XML injection flaw. GeoServer had already fixed both in versions 2.27.7, 2.28.6 and 3.0.2 before publishing the details on 23 November.
The useful lesson is not limited to mapping software. GeoServer routed a prefixed service name as if it were the normal service, while its security check evaluated the original value. One component saw WFS. Another saw x/WFS. The request reached the protected operation because the router and the authorization layer disagreed about what the same input meant.
That mismatch allowed an unauthenticated caller to create a stored query that should have required an administrator role. A second flaw then let attacker-controlled text alter the XML template behind a built-in query. The server could read local text files or fetch an attacker-selected URL. The GeoServer advisory describes these bugs as steps in a longer chain that can lead to administrator session forgery and code execution.
A small parsing difference became a security boundary.
The router normalized the name, but the policy engine did not
GeoServer exposes web services through a dispatcher. The dispatcher accepted a value such as service=x/WFS, stripped the prefix before the slash, and selected the WFS implementation.
Service security used a different representation. It compared the unresolved value x/WFS with rules written for WFS. No rule matched. Operations protected only by those service rules could run without the intended role check.
The default configuration restricts CreateStoredQuery and DropStoredQuery to administrators. The bypass therefore let an anonymous request create or remove WFS stored queries. Installations that used the same service-level rules to protect transactions exposed those operations too. Layer and data rules still applied, which is an important limit: the flaw bypassed one authorization layer, not every security control in the product.
The patch makes the dispatcher place the resolved service identifier back into the request before authorization. Routing and security now evaluate the same canonical value.
This is the design rule to carry into another system: canonicalize once, before policy. Do not let the router, controller, permission middleware and audit logger each invent their own interpretation of a tenant name, path, resource identifier or action.
XML injection turned the bypass into data access
The second flaw sat in the built-in WFS 2.0 GetFeatureById stored query. GeoServer inserted the caller's ID value into an XML template with plain string replacement:
<fes:ResourceId rid='${ID}'/>
A crafted value could close the attribute and add new XML elements. GeoServer then parsed the generated document without the entity resolver used elsewhere in the class. That allowed XInclude or external references to point at a local text file or an HTTP or HTTPS URL.
The result was more than malformed XML. A single unauthenticated request could make the GeoServer process read a local file or send a request from the server's network position. When a layer was published to anonymous users, the fetched text could appear in the error response. Otherwise, the file could still be read without its contents being returned.
The fix uses GeoServer's entity resolver when parsing stored queries, and GeoTools now checks redirects through its protective resolver. Escaping the inserted value would address the immediate template injection. Using a parser configured to reject external access provides a second boundary if unsafe text reaches the parser another way.
Both controls matter. Input encoding stops data from becoming structure. Parser policy limits what that structure can reach.
Patch first, then look for evidence of the chain
The GeoServer security update tells operators to move to 3.0.2, 2.28.6 or 2.27.7. The 2.27 line is no longer a supported long-term target, so its emergency fix should be followed by a move to a maintained series.
If an immediate update is not possible, the project recommends blocking requests whose service parameter contains a slash, whether it appears in the query string or the XML request. Operators can also restrict or disable anonymous WFS access. These are temporary controls. A different proxy rule or an unprotected path can leave the vulnerable parser reachable.
After patching, review wfs/query and workspaces/*/wfs/query in the GeoServer data directory for stored queries nobody expected. Check access logs for prefixed service values and unusual GetFeatureById requests. Treat outbound connections from the GeoServer process as evidence too, especially requests to internal services or metadata endpoints that the public client could not normally reach.
Inventory matters because GeoServer may arrive through a container image, a managed geospatial platform or an application bundle rather than as a package an engineering team installed directly. Record the running version, enabled WFS service, public exposure and owner. A dependency scanner that sees only application libraries may not see the server at all.
CISA lists both vulnerabilities as exploited, but its catalog does not identify every campaign or prove that a particular exposed instance was compromised. Patch urgency and incident conclusions are different questions.
What this changes for request authorization
The immediate action is version-specific. The engineering lesson is broader.
For every request field that influences routing and authorization, define one parser and one canonical representation. Reject ambiguous forms before dispatch. Carry the canonical value through the authorization decision, handler selection, logs and metrics. Test aliases, case changes, encoded separators, duplicate parameters and path prefixes as security cases, not only as routing cases.
Then make authorization deny by default when no rule matches. In this incident, an unfamiliar service name missed the intended rule and still reached the operation. A missing policy match should be an error that is visible in telemetry, not permission to continue.
Finally, test chains. A stored-query permission bypass and an XML parser flaw are separate findings, but an attacker combines them. Threat modeling should ask what a newly reachable operation can feed, what files the process can read, where it can connect and which secrets turn that access into a stronger identity.
The exploited GeoServer bugs do not mean every parser mismatch leads to code execution. They show why a request cannot have one identity for routing and another for security. Normalize once, authorize that exact value, and keep the parser behind it unable to reach the filesystem or network unless the feature truly requires it.
Written by Dandelion Labs