Skip to main content

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

AI SECURITY Security Advisory
CVE-2026-129243 on CVE Radar by SOCRadar
CVE-2026-129243 on CVE Radar by SOCRadar Source: cve.socradar.io
Field Note · The Short Version 4 min read

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 surfaceBlast radiusConcrete control
Agent web-fetch tool calling GeoServer OWS/WFSIndirect prompt injection, stored-query creation, spatial data exfiltrationSandbox fetch tooling, egress allow-lists, output sanitization
GeoServer service-level authorizationUnauthenticated WFS/OWS operation invocationUpgrade to 2.27.7, 2.28.6, or 3.0.2; reverse-proxy slash rejection
Multi-turn agent contextGuardrail drift across fetched pagesPer-turn re-validation, tool-call allow-lists, session isolation
Unauthenticated MCP or GeoServer endpointsPrivilege escalation in autonomous agentsMutual 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:

NGINX30 lines
# 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:

Bash8 lines
#!/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 ;;
esac

Review 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.

CVE-2026-129243 on CVE Radar by SOCRadar
CVE-2026-129243 on CVE Radar by SOCRadar

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?
No. The flaw bypasses service-level authorization only. Layer-level and data-level access controls remain effective, but stored-query creation and WFS/OWS operations can still be abused by unauthenticated callers.
Can this vulnerability lead to remote code execution by itself?
No. It does not independently establish remote code execution, but it can contribute to an unauthenticated RCE chain when combined with separate information-disclosure, authentication-forgery, or administrator-level code-execution vulnerabilities.
Which fixed releases should I upgrade to?
Upgrade to GeoServer 2.27.7, 2.28.6, 3.0.2, or a later fixed release appropriate to the deployment, including containers, staging systems, and legacy deployments.
What is the CISA BOD 26-04 deadline for federal agencies?
The CISA KEV entry for CVE-2026-129243 lists a federal deadline of Nov 30, 2026, per BOD 26-04 guidance for prioritizing security updates based on risk.

Bibliography & Verification

Primary Sources & References

7 cited sources
  1. [01] cisa.gov known-exploited-vulnerabilities-catalog
  2. [02] cve.socradar.io cve / CVE-2026-129243
  3. [03] mallory.ai vulnerabilities / CVE-2026-129243
  4. [04] cwe.mitre.org data / definitions / 863.html
  5. [05] owasp.org www-project-top-10-for-large-language-model-applications
  6. [06] airc.nist.gov AI_RMF_Knowledge_Base
  7. [07] cisa.gov news-events / directives / bod-26-04-prioritizing-security-updates-base…

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.

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.