GeoServer unauthenticated XML injection in WFS GetFeatureById
Affects GeoServer with the WFS 2.0 GetFeatureById stored query exposed through GetFeature (gs-wfs-core before 2.27.7, 2.28.6 or 3.0.2). Fixed in 2.27.7, 2.28.6 and 3.0.2.
- Exploited
- Yes, on CISA KEV
- Fix
- Fixed in 33.7, 34.6, 35.2, 2.27.7, 2.28.6, and 1 more
- Who is exposed
- Default setups
Summary
GeoServer, an open source server for sharing and editing geospatial data, has a flaw in its WFS stored query for getting a feature by ID: the ID is placed into an XML template without escaping, so an attacker can inject XML, including an xi:include, and gain access to confidential data. It can be reached remotely, without logging in, and it is listed as exploited in attacks.
Written by a model
Original description
GeoServer is an open source server that allows users to share and edit geospatial data. Prior to "org.geoserver:gs-wfs-core" versions 2.27.7, 2.28.6, and 3.0.2 and prior to "org.geotools:gt-metadata" versions 33.7, 34.6, and 35.2, GeoServer exposes the built-in WFS 2.0 stored query urn:ogc:def:query:OGC-WFS::GetFeatureById through the public GetFeature operation. The stored query substituted the caller's ID parameter into an XML template without escaping, then parsed the result without GeoServer's entity resolver. An unauthenticated caller could inject XML, including an xi:include, into the query. This issue has been patched in "org.geoserver:gs-wfs-core" versions 2.27.7, 2.28.6, and 3.0.2 and "org.geotools:gt-metadata" versions 33.7, 34.6, and 35.2.
Who should check
Teams running GeoServer (gs-wfs-core up to 2.27.6, 2.28.0-2.28.5, 3.0.0-3.0.1) with WFS enabled, especially where WFS is reachable by anonymous users.
“GeoServer exposes the built-in WFS 2.0 stored query urn:ogc:def:query:OGC-WFS::GetFeatureById through the public GetFeature operation.”
What to do
Upgrade to a fixed version: 33.7, 34.6, 35.2, 2.27.7, 2.28.6, or one of 1 more.
Fix it by , CISA's deadline for US federal agencies.
CISA's required action: Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-120705 (GeoServer: Unauthenticated WFS GetFeatureById XML injection), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-120705 (entry last updated 2026-11-30):
Affected:
- geoserver geoserver: fixed in 33.7; from 34.0, fixed in 34.6; from 35.0, fixed in 35.2; fixed in 2.27.7; from 2.28.0, fixed in 2.28.6; from 3.0.0, fixed in 3.0.2
Fixed versions: 33.7, 34.6, 35.2, 2.27.7, 2.28.6, 3.0.2.
Conditions (all must be true for the bug to be hit):
- GeoServer with the WFS 2.0 GetFeatureById stored query exposed through GetFeature (gs-wfs-core before 2.27.7, 2.28.6 or 3.0.2) (source: https://github.com/geoserver/geoserver/security/advisories/GHSA-39mw-5chv-jh47)
- File contents are returned in the response only when a layer is published to anonymous users (source: https://github.com/geoserver/geoserver/security/advisories/GHSA-39mw-5chv-jh47)
Setup: the bug is reachable in a default setup; no special feature or setting is needed.
Attacker needs: network access, no login, no user action.
CISA KEV: CVE-2026-120705 is listed as known exploited (added 2026-11-27, remediation due 2026-11-30). CISA's required action: Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
This KEV status is for CVE-2026-120705 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/geoserver/geoserver/security/advisories/GHSA-39mw-5chv-jh47
- https://github.com/geoserver/geoserver/pull/9928
- https://github.com/geoserver/geoserver/releases/tag/2.27.7
- https://github.com/geoserver/geoserver/releases/tag/2.28.6
- https://github.com/geoserver/geoserver/releases/tag/3.0.2
- https://osgeo-org.atlassian.net/jira/browse/GEOS-12199
- https://osgeo-org.atlassian.net/jira/browse/GEOT-7938
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-120705
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-120705
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-120705"}.Affected versions
- geoserver geoserverfixed in 33.7; From 34.0 · fixed in 34.6; From 35.0 · fixed in 35.2; fixed in 2.27.7; From 2.28.0 · fixed in 2.28.6; From 3.0.0 · fixed in 3.0.2
cve.now Index
- Exploitation40/40Listed in CISA's Known Exploited Vulnerabilities catalog
- Exposure25/25Actively exploited, CISA rates it automatable
- Reach?/20Unknown. No tracked technology or package matched
- Severity8.6/10CVSS 8.6
- No patch0/5No signal
Timeline
- cve.now early warning
CISA adds exploited GeoServer and Drupal Core flaws to KEV catalog
2 days - Added to CISA KEV
CISA has evidence of exploitation in the wild
3 days - CISA remediation deadline
Due date for US federal agencies to patch
- CVE published
- CISA SSVC assessment
Exploitation: active · Automatable: yes · Technical impact: partial
- Record last updated
- First seen by cve.now
- Posted on X by cve.now
Evidence 11
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Advisory | GitHub · geoserver/geoserver · Advisory GHSA-39mw-5chv-jh47 |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-120705 |
| Record | NVD · CVE-2026-120705 |
| CISA KEV 2Establishes: Exploitation in the wild, for this CVE only. | |
| Listing | CISA KEV · CVE-2026-120705, added 2026-11-27 |
| Link | cisa.gov · known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-120705 |
| Other links 6 | |
| Repository | GitHub · geoserver/geoserver · Pull request #9928 |
| Repository | GitHub · geoserver/geoserver · Release 2.27.7 |
| Repository | GitHub · geoserver/geoserver · Release 2.28.6 |
| Repository | GitHub · geoserver/geoserver · Release 3.0.2 |
| Link | osgeo-org.atlassian.net · jira/browse/GEOS-12199 |
| Link | osgeo-org.atlassian.net · jira/browse/GEOT-7938 |
Questions about CVE-2026-120705
Is CVE-2026-120705 being exploited?
Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2026-11-27, which means it has evidence of attacks. US federal agencies must fix it by 2026-11-30. No public exploit code is tracked.
Source: cisa.gov, cve.now feed data
What does this mean?
An unauthenticated attacker can make GeoServer read local text files that the GeoServer process can read. They can also make the server fetch attacker-chosen HTTP/HTTPS URLs (SSRF), with the fetched text returned in an error response.
Source: github.com
Which versions are affected by CVE-2026-120705?
geoserver: before 33.7; from 34.0 before 34.6; from 35.0 before 35.2; before 2.27.7; from 2.28.0 before 2.28.6; from 3.0.0 before 3.0.2.
Source: cve.now feed data
Am I affected, and how do I check?
The affected setup is GeoServer exposing the built-in WFS 2.0 stored query GetFeatureById through the public GetFeature operation (gs-wfs-core before 2.27.7, 2.28.6 or 3.0.2). The listed fixed versions also include 33.7, 34.6 and 35.2. File contents are returned in the response only when a layer is published to anonymous users; otherwise the file is still read but not returned. Compare the installed GeoServer version with these ranges to check.
Source: github.com
How do I fix CVE-2026-120705?
Upgrade to a fixed version for the branch in use: 2.27.7, 2.28.6 or 3.0.2. The advisory ranges also list 33.7, 34.6 and 35.2 as fixed versions. No workaround is given in the checked facts.
Source: github.com
Related
- SZB-2787329794Started as this early warning
- CVE-2026-129243OSGeo GeoServer Incorrect Authorization Vulnerability
- CVE-2025-58360OSGeo GeoServer Improper Restriction of XML External Entity Reference Vulnerability
- CVE-2024-36401OSGeo GeoServer GeoTools Eval Injection Vulnerability
- CVE-2022-24816OSGeo GeoServer JAI-EXT Code Injection Vulnerability
- CVE-2025-30220GeoTools, GeoServer, and GeoNetwork XML External Entity (XXE) Processing Vulnerability in XSD schema handling
No corrections so far. Something wrong on this page? Report an error.