Skip to main content
Menu
CVEs

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.

CVE-2026-120705EUVD-2026-139618Published November 30, 2026, updated Needs attention

8.6HighCNA
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.”

github.com

What to do

  1. Upgrade to a fixed version: 33.7, 34.6, 35.2, 2.27.7, 2.28.6, or one of 1 more.

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

cve.now Index

74Pof 100 · provisional · methodology v3
  • 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

  1. cve.now early warning

    CISA adds exploited GeoServer and Drupal Core flaws to KEV catalog

    2 days
  2. Added to CISA KEV

    CISA has evidence of exploitation in the wild

    3 days
  3. CISA remediation deadline

    Due date for US federal agencies to patch

  4. CVE published
  5. CISA SSVC assessment

    Exploitation: active · Automatable: yes · Technical impact: partial

  6. Record last updated
  7. First seen by cve.now
  8. Posted on X by cve.now

Evidence 11

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

No corrections so far. Something wrong on this page? Report an error.