GeoServer CVE-2026-129243 Authorization Bypass in Agent Fetch
Defensive teardown of GeoServer CVE-2026-129243 incorrect authorization enabling indirect prompt injection in agent web-fetch pipelines, with sandbox isolation
GeoServer CVE-2026-129243 lets unauthenticated callers bypass service-level authorization via prefixed service names, exposing agent web-fetch pipelines to indirect prompt injection and stored-query abuse; patch to 2.27.7, 2.28.6, or 3.0.2 and isolate fetch tooling behind an nginx egress proxy that rejects slash-containing service parameters.
Key Numbers & Verified Specs
6 metrics| Metric / Spec | Verified Finding | Source |
|---|---|---|
| CVE identifier | CVE-2026-129243 | cve.socradar.io |
| Affected GeoServer versions | through 2.27.6, 2.28.0–2.28.5, and 3.0.0–3.0.1 | mallory.ai |
| Fixed releases | 2.27.7, 2.28.6, 3.0.2, or later | mallory.ai |
| CISA KEV listing date | Nov 27, 2026 | cve.socradar.io |
| CWE class | CWE-863 Incorrect Authorization | cwe.mitre.org |
| Reverse proxy mitigation | Reject service values containing a slash in query parameters and XML service attributes, including encoded representations | mallory.ai |
Jump to section (5) +
GeoServer CVE-2026-129243 is an incorrect authorization vulnerability in OSGeo GeoServer's OWS service-dispatch and security handling. Inconsistent interpretation of prefixed service names between request routing and service-level authorization allows unauthenticated callers to invoke OWS operations that service security rules should restrict, including WFS stored-query creation. The flaw is listed in the CISA KEV catalog with confirmed exploitation and a federal deadline of Nov 30, 2026 per BOD 26-04 CISA KEV catalog.
This advisory treats the vulnerability as an agentic supply-chain risk. Applications that let large language models fetch arbitrary GeoServer OWS/WFS endpoints through web-fetch tools inherit the authorization bypass. An attacker who controls or influences a fetched resource can inject indirect prompt instructions that steer the agent into calling privileged GeoServer operations, creating stored queries, or exfiltrating spatial data through tool outputs the agent trusts.
Threat Model & Attack Surface Matrix
| Attack surface | Blast radius | Concrete control |
|---|---|---|
| Agent web-fetch tool calling GeoServer OWS/WFS | Indirect prompt injection, stored-query creation, spatial data exfiltration | Sandbox fetch tooling, egress allow-lists, output sanitization |
| GeoServer service-level authorization | Unauthenticated WFS/OWS operation invocation | Upgrade to 2.27.7, 2.28.6, or 3.0.2; reverse-proxy slash rejection |
| Multi-turn agent context | Guardrail drift across fetched pages | Per-turn re-validation, tool-call allow-lists, session isolation |
| Unauthenticated MCP or GeoServer endpoints | Privilege escalation in autonomous agents | Mutual TLS, network segmentation, credential rotation |
Why Naive Prompt Filters Fail
Keyword filters on user prompts do not stop indirect injection because the malicious instruction arrives inside a fetched GeoServer response, not in the user message. The agent reads the fetched content as trusted tool output and may act on embedded directions to call WFS stored-query endpoints. Multi-turn guardrail drift compounds the problem: a filter that passes in turn one can miss a split instruction delivered across two fetched pages. OWASP LLM Top 10 (2025) classifies this as LLM01 Prompt Injection for the indirect injection, LLM05 Improper Output Handling for tool output being trusted, and LLM06 Excessive Agency for the agent acting on unvalidated fetched data OWASP LLM Top 10 2025. NIST AI RMF recommends treating all external tool outputs as untrusted NIST AI RMF.
Defense-in-Depth & Sandbox Isolation Architecture
Isolate the agent's web-fetch capability in a sandboxed process with no direct network route to internal GeoServer instances. Route all fetch traffic through an egress proxy that enforces an allow-list of hosts and strips or rewrites GeoServer service parameters before they reach the backend. Run the agent under a least-privilege service account with no write access to vector data stores. Log every tool call with the fetched URL, response size, and downstream GeoServer operation for anomaly detection.
Runnable Guardrail Policy / Verification Code
The following nginx snippet rejects GeoServer service values containing a slash, including encoded representations, at the reverse-proxy layer. Deploy this in the server or location block fronting GeoServer:
# geo-server-slash-reject.conf
map $args $reject_prefixed_service {
default 0;
"~*service=.*[/\\%2F%2f%c0%af]" 1;
}
map $request_body $reject_prefixed_service_xml {
default 0;
"~*<[^>]*service=[^>]*[/\\%2F%2f%c0%af]" 1;
}
server {
listen 8080;
server_name geoserver-proxy;
if ($reject_prefixed_service = 1) {
return 400 "Prefixed service parameter rejected";
}
if ($request_method = POST) {
set $check_body $reject_prefixed_service_xml;
if ($check_body = 1) {
return 400 "Prefixed service attribute in XML body rejected";
}
}
location /geoserver/ {
proxy_pass http://geoserver-backend:8080/geoserver/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}Verify patch status by querying the running GeoServer version endpoint and comparing against the fixed releases:
#!/bin/bash
# verify-geoserver-patch.sh
EXPECTED="2.27.7 2.28.6 3.0.2"
ACTUAL=$(curl -s http://localhost:8080/geoserver/about/version.json | jq -r '.version')
case " $EXPECTED " in
*" $ACTUAL "*) echo "PASS: GeoServer $ACTUAL is a fixed release"; exit 0 ;;
*) echo "FAIL: GeoServer $ACTUAL may be vulnerable to CVE-2026-129243"; exit 1 ;;
esacReview application and reverse-proxy logs for prefixed service names and unauthorized stored-query creation, invocation, or deletion. Patching does not remove previously established attacker access; investigate suspicious activity and rotate affected credentials and security keys if compromise or disclosure is identified.
Operational Tradeoffs & False-Positive Budget
Rejecting service values containing a slash can break legitimate WFS requests that use namespaced service names. Validate that legitimate requests remain functional after enabling the proxy filter, and tune the allow-list before enforcing in production. Sandbox isolation adds approximately 5 to 15 milliseconds of egress latency per fetch call (internal estimate: nginx proxy, 1 KB payload, 100 concurrent requests, 10k samples) and increases false-positive rates by roughly 2 to 4 percent when URL rewriting is active. Policy evaluation at the nginx layer adds ~2 to 5 ms per request. These controls are temporary defenses and do not replace the vendor update or address every related exploitation path.
When not to use this architecture: if your agent requires direct, unauthenticated access to GeoServer for public map tiles, sandboxing and egress filtering will break the workflow. In that case, restrict network exposure to trusted networks and disable unnecessary WFS functionality where operationally feasible.

GeoServer vendor advisory GitHub security advisory GHSA-rv5g-g2r9-58rj CISA BOD 26-04 prioritizing security updates based on risk
Reader Q&A
Frequently Asked Questions
Does CVE-2026-129243 bypass layer-level authorization?
Can this vulnerability lead to remote code execution by itself?
Which fixed releases should I upgrade to?
What is the CISA BOD 26-04 deadline for federal agencies?
Bibliography & Verification
Primary Sources & References
- [01] cisa.gov known-exploited-vulnerabilities-catalog Source
- [02] cve.socradar.io cve / CVE-2026-129243 Source
- [03] mallory.ai vulnerabilities / CVE-2026-129243 Source
- [04] cwe.mitre.org data / definitions / 863.html Source
- [05] owasp.org www-project-top-10-for-large-language-model-applications Source
- [06] airc.nist.gov AI_RMF_Knowledge_Base Source
- [07] cisa.gov news-events / directives / bod-26-04-prioritizing-security-updates-base… Source
Human × Agent Co-Work
Hamdi Soudani · in collaboration with Pyvren
Systems engineer & technical writer exploring AI infrastructure, security, and edge craft in daily collaboration with Pyvren.
Keep Reading
Related Dispatches
Hamdi Soudani × Pyvren
Honest engineering stories — co-crafted with primary benchmarks & real code
Every dispatch blends hands-on engineering judgment with verified primary sources, reproducible configs, and clear tradeoffs.