CVE-2026-120705: Unauthenticated XML Injection in GeoServer WFS GetFeatureById
CVE-2026-120705 is an XML injection vulnerability in GeoServer's built-in Web Feature Service (WFS) 2.0 GetFeatureById stored query. An attacker-controlled identifier is inserted into an XML query template without adequate escaping, allowing injection of additional XML elements, including XInclude elements. A single unauthenticated WFS request can disclose local text files readable by the GeoServer process or trigger server-side HTTP or HTTPS requests to attacker-selected destinations. 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 versions before 33.7, 34.x before 34.6, and 35.x before 35.2.
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 service account, potentially exposing usernames, password digests, signing keys, and other sensitive configuration. File disclosure is constrained by XML-processing compatibility and does not imply unrestricted binary-file access. The SSRF capability allows attacker-directed HTTP and HTTPS requests from the server, potentially reaching services unavailable directly to the attacker. Disclosed authentication material can support administrator-session forgery when combined with CVE-2026-129245; additional administrator-level vulnerabilities, including CVE-2026-120704, can extend the chain to remote code execution. This vulnerability alone does not establish administrator access or code execution. Active exploitation has been reported.
Mitigation
If you can’t patch tonight, do this now.
Until updates can be applied, disable WFS where operationally feasible or restrict access to trusted clients through network controls or a reverse proxy, ensuring back-end endpoints cannot be reached directly. Restrict administration interfaces to trusted management networks. Run GeoServer with minimal operating-system privileges and isolate its service account from unrelated sensitive files and credentials. Restrict unnecessary outbound HTTP and HTTPS connectivity to reduce SSRF exposure. Blocking creation of custom stored queries is insufficient because the vulnerable query is built in. These controls reduce exposure but do not replace patching.
Remediation
Patch, then assume compromise.
Upgrade GeoServer to version 2.27.7, 2.28.6, 3.0.2, or a newer fixed release, preferably on a supported branch. Applications independently integrating GeoTools gt-metadata should upgrade to 33.7, 34.6, 35.2, or a newer fixed release appropriate to their branch. Verify that every running instance, including staging and legacy deployments, uses the updated components. Investigate previously exposed systems for unauthorized access and configuration changes; patching does not remove established attacker access. If sensitive authentication material may have been disclosed, rotate affected passwords, signing keys, and other secrets after closing the file-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 version 2.27.7, 2.28.6, 3.0.2, or a newer fixed release, preferably on a supported branch. Applications independently integrating GeoTools gt-metadata should upgrade to 33.7, 34.6, 35.2, or a newer fixed release appropriate to their branch.
Recent activity
68 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.