CVE-2026-120705: Unauthenticated XML Injection in GeoServer WFS GetFeatureById
CVE-2026-120705 is an unauthenticated XML injection vulnerability in the built-in GetFeatureById stored query of GeoServer's Web Feature Service (WFS) 2.0 implementation. A user-supplied identifier is inserted into an XML query template without adequate escaping, allowing an attacker to inject additional XML elements, including XInclude elements. A single crafted WFS request can disclose local text files readable by the GeoServer process or trigger HTTP/HTTPS requests to attacker-selected destinations. Exploitation does not require creating a custom stored query. Affected GeoServer releases include versions before 2.27.7, 2.28.x before 2.28.6, and 3.0.x before 3.0.2. The vulnerability also affects GeoTools gt-metadata. Its reported CVSS score is 8.6.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises the confidentiality of local text files accessible to the GeoServer process, potentially exposing usernames, password digests, authentication-signing keys, and other security configuration or application secrets. File disclosure is constrained by filesystem permissions and XML/text-processing compatibility; arbitrary binary-file disclosure is not established. SSRF can make the server access attacker-selected HTTP/HTTPS destinations, potentially including internal services reachable from the deployment. When combined with CVE-2026-129245 and separate administrator-level code-execution vulnerabilities, disclosed authentication material can enable administrator impersonation and ultimately remote code execution. This vulnerability alone does not establish code execution. Active exploitation and vulnerability probing have been reported, but successful malicious execution of the complete code-execution chains has not been established.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is impossible, disable unnecessary WFS functionality or restrict WFS access to trusted clients at a reverse proxy or network boundary, preventing direct access to the back-end service. Restrict administrative interfaces to private management networks or VPN access. Run GeoServer with minimal operating-system privileges, isolate sensitive files and credentials from its service account, and limit outbound HTTP/HTTPS access. Blocking creation of new stored queries is insufficient because the vulnerable query is built in. Changing authentication-signing keys alone is also insufficient while file disclosure remains possible.
Remediation
Patch, then assume compromise.
Upgrade GeoServer to 3.0.2, 2.28.6, or 2.27.7, or a newer fixed release appropriate to the deployed branch. Prefer a supported branch because the 2.27 branch is no longer officially supported. Applications integrating affected GeoTools gt-metadata versions should upgrade to 33.7, 34.6, or 35.2, or newer fixed versions in the applicable branch. Verify that the running application uses the updated components and that older instances are no longer serving requests. Investigate potentially exposed deployments for compromise; patching does not revoke previously obtained attacker access. If credentials or security configuration may have been disclosed, rotate affected passwords, signing keys, and other secrets after closing the disclosure vulnerability.
Exploits
1 exploit validated by Mallory's analysis.
References
Frequently asked questions
- Is CVE-2026-120705 exploited in the wild?
- Yes. As of Nov 28, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 27, 2026.
- Is there a public exploit for CVE-2026-120705?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-120705, the earliest disclosed Nov 23, 2026.
- Is there a patch for CVE-2026-120705?
- Upgrade GeoServer to 3.0.2, 2.28.6, or 2.27.7, or a newer fixed release appropriate to the deployed branch. Prefer a supported branch because the 2.27 branch is no longer officially supported.
Recent activity
74 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.