CVE-2026-120705
OSGeo GeoServer XML Injection Vulnerability
Description
CVE-2026-120705 is an XML injection vulnerability in OSGeo GeoServer that lets an unauthenticated caller inject XML, including an xi:include, into the built-in WFS 2.0 stored query GetFeatureById. GeoServer exposes this stored query through the public GetFeature operation, substitutes the caller's ID parameter into an XML template without escaping and then parses the result without GeoServer's entity resolver. An attacker can therefore change the structure of the query document and have the server include content it should never expose, which is why the vulnerability is rated with a high confidentiality impact. CVE-2026-120705 is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and has an EPSS score of 21.2%, so GeoServer instances reachable from the internet are at real risk.
KEV Information
CVSS Score
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:NOpen in CalculatorCWEs
Affected Products
| Vendor | Product | Version |
|---|---|---|
| osgeo | geoserver | < 2.27.7; >= 2.28.0, < 2.28.6; >= 3.0.0, < 3.0.2 |
| osgeo | geotools | < 33.7; >= 34.0, < 34.6; >= 35.0, < 35.2 |
References
- https://github.com/geoserver/geoserver/pull/9928(Issue Tracking, Patch)
- https://github.com/geoserver/geoserver/releases/tag/2.27.7(Release Notes)
- https://github.com/geoserver/geoserver/releases/tag/2.28.6(Release Notes)
- https://github.com/geoserver/geoserver/releases/tag/3.0.2(Release Notes)
- https://github.com/geoserver/geoserver/security/advisories/GHSA-39mw-5chv-jh47(Vendor Advisory)
- https://osgeo-org.atlassian.net/jira/browse/GEOS-12199(Issue Tracking, Vendor Advisory)
- https://osgeo-org.atlassian.net/jira/browse/GEOT-7938(Issue Tracking)
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-120705(Third Party Advisory, US Government Resource)
Weakness Type
CWE-91: XML Injection (aka Blind XPath Injection)
GeoServer builds the XML of the GetFeatureById stored query from the caller-supplied ID parameter without neutralizing XML special characters. In CVE-2026-120705 this lets an attacker add their own elements, such as an xi:include, to the document, and because the result is parsed without GeoServer's entity resolver, the injected structure is processed.
Learn more: CWE-91 — XML Injection (aka Blind XPath Injection)
Impact Analysis
CVE-2026-120705 has a CVSS 3.1 score of 8.6 (HIGH) and is remotely exploitable without physical access (Attack Vector NETWORK), easy to exploit with no special conditions (Attack Complexity LOW), without authentication (Privileges Required NONE) and without any user action (User Interaction NONE). The scope is CHANGED, meaning the attack can affect resources beyond the vulnerable WFS component itself. The impact is concentrated on confidentiality (Confidentiality: High), as injected XML inclusions are resolved by the server, while integrity and availability are not affected according to the vector. For operators this means that a public GeoServer endpoint can be turned into a way to read data that the geospatial service was never meant to publish, and the EPSS score of 21.2% together with the KEV listing shows that attackers are making use of it.
Exploit Maturity
CISA has confirmed active exploitation of CVE-2026-120705 by listing it in the Known Exploited Vulnerabilities catalog with a due date of 2026-11-30; the KEV ransomware status is Unknown. The references contain patches, release notes and the vendor advisory, but no entry tagged as a public exploit. The EPSS score of 21.2% puts the vulnerability in the 98th percentile, which indicates a clearly elevated probability of exploitation compared with almost all other CVEs. It was added to the KEV catalog on the same day as CVE-2026-129243, an authorization flaw in the same GeoServer releases, so both should be closed with the same update.
Remediation
- Follow the CISA KEV required action. Apply mitigations in accordance with vendor instructions and CISA's BOD 26-04 guidance, or discontinue use of the product if mitigations are unavailable; the KEV due date for CVE-2026-120705 is 2026-11-30.
- Update GeoServer to 2.27.7, 2.28.6 or 3.0.2. Affected are GeoServer before 2.27.7, 2.28.0 before 2.28.6 and 3.0.0 before 3.0.2; the fix is in org.geoserver:gs-wfs-core and is described in the vendor advisory GHSA-39mw-5chv-jh47.
- Update GeoTools where it is used on its own. The library org.geotools:gt-metadata is affected before 33.7, 34.0 before 34.6 and 35.0 before 35.2; move to 33.7, 34.6 or 35.2.
- Limit exposure until the update is installed. Restrict access to the WFS endpoint to trusted clients, or filter GetFeature requests that reference the stored query urn:ogc:def:query:OGC-WFS::GetFeatureById with XML markup in the ID parameter at a reverse proxy or web application firewall.
- Review request logs for GetFeature calls whose ID parameter contains XML special characters or xi:include, and in your own code escape XML special characters and validate identifiers against an allowlist before placing them in XML documents.
Technical Details
CVE-2026-120705 is an XML Injection (CWE-91) flaw in the WFS implementation of GeoServer. The built-in WFS 2.0 stored query urn:ogc:def:query:OGC-WFS::GetFeatureById is reachable through the public GetFeature operation, and the stored query inserts the caller's ID parameter into an XML template without escaping. The resulting document is then parsed without GeoServer's entity resolver, so markup supplied by the caller becomes part of the query, including an xi:include that pulls further content into the document. The vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N describes an unauthenticated network attack of low complexity with changed scope and a high confidentiality impact. The fix was made in org.geoserver:gs-wfs-core 2.27.7, 2.28.6 and 3.0.2 and in org.geotools:gt-metadata 33.7, 34.6 and 35.2.
Frequently Asked Questions
Is CVE-2026-120705 being actively exploited?
Yes. CVE-2026-120705 is listed in the CISA Known Exploited Vulnerabilities catalog, which confirms exploitation in the wild. The EPSS score is 21.2% (98th percentile) and the ransomware status is Unknown.
What products are affected by CVE-2026-120705?
OSGeo GeoServer is affected before 2.27.7, from 2.28.0 before 2.28.6 and from 3.0.0 before 3.0.2. The GeoTools library is affected before 33.7, from 34.0 before 34.6 and from 35.0 before 35.2.
How do I fix CVE-2026-120705?
Update GeoServer to 2.27.7, 2.28.6 or 3.0.2 and GeoTools to 33.7, 34.6 or 35.2. Until then, restrict access to the WFS endpoint and filter requests to the GetFeatureById stored query that carry XML markup, as described in the Remediation section.
How severe is CVE-2026-120705?
CVE-2026-120705 is rated HIGH with a CVSS 3.1 score of 8.6. It can be exploited over the network without authentication and has a high impact on confidentiality with changed scope; the EPSS percentile of 98 and the KEV listing underline the urgency.
Need Help With Vulnerability Management?
Our security experts can help you prioritize and remediate vulnerabilities effectively.