Public vulnerability disclosure

CVE-2026-120705

GeoServer: Unauthenticated WFS GetFeatureById XML injection

publishedKnown exploited · CISA KEVCWE-91

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.

Technical severity8.6 highCVSS 3.1 · CNA: GitHub_M
Published2026-11-30Source updated 2026-12-03
Collected2026-12-035 attributed sources

Fixes and workarounds

Fix

The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.

Source: [email protected]

Fix

org.geoserver:gs-wfs-core (maven): GitHub reports patched versions 2.27.7. Check the advisory for the affected release branch.

Source: GitHub GHSA-39mw-5chv-jh47

Fix

org.geoserver:gs-wfs-core (maven): GitHub reports patched versions 2.28.6. Check the advisory for the affected release branch.

Source: GitHub GHSA-39mw-5chv-jh47

Fix

org.geoserver:gs-wfs-core (maven): GitHub reports patched versions 3.0.2. Check the advisory for the affected release branch.

Source: GitHub GHSA-39mw-5chv-jh47

Fix

org.geotools:gt-metadata (maven): GitHub reports patched versions 33.7. Check the advisory for the affected release branch.

Source: GitHub GHSA-39mw-5chv-jh47

Fix

org.geotools:gt-metadata (maven): GitHub reports patched versions 34.6. Check the advisory for the affected release branch.

Source: GitHub GHSA-39mw-5chv-jh47

Fix

org.geotools:gt-metadata (maven): GitHub reports patched versions 35.2. Check the advisory for the affected release branch.

Source: GitHub GHSA-39mw-5chv-jh47

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
geoserver
geoserver
< 33.7 (affected)
>= 34.0, < 34.6 (affected)
>= 35.0, < 35.2 (affected)
< 2.27.7 (affected)
>= 2.28.0, < 2.28.6 (affected)
>= 3.0.0, < 3.0.2 (affected)
CNA: GitHub_M
org.geoserver:gs-wfs-core

org.geoserver:gs-wfs-core
maven
<= 2.27.6 (affected, GitHub advisory range) GitHub GHSA-39mw-5chv-jh47
org.geoserver:gs-wfs-core

org.geoserver:gs-wfs-core
maven
>= 2.28.0, <= 2.28.5 (affected, GitHub advisory range) GitHub GHSA-39mw-5chv-jh47
org.geoserver:gs-wfs-core

org.geoserver:gs-wfs-core
maven
>= 3.0.0, <= 3.0.1 (affected, GitHub advisory range) GitHub GHSA-39mw-5chv-jh47
org.geotools:gt-metadata

org.geotools:gt-metadata
maven
<= 33.6 (affected, GitHub advisory range) GitHub GHSA-39mw-5chv-jh47
org.geotools:gt-metadata

org.geotools:gt-metadata
maven
>= 34.0, <= 34.5 (affected, GitHub advisory range) GitHub GHSA-39mw-5chv-jh47
org.geotools:gt-metadata

org.geotools:gt-metadata
maven
>= 35.0, <= 35.1 (affected, GitHub advisory range) GitHub GHSA-39mw-5chv-jh47

Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.

NVD applicability configurations (1)

These expressions retain AND/OR operators, negation, and required environmental products. A listed product is not sufficient to establish exposure when additional conditions apply.

[
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:osgeo:geoserver:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "2.27.7",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:a:osgeo:geoserver:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "2.28.6",
            "versionStartIncluding": "2.28.0",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:a:osgeo:geoserver:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "3.0.2",
            "versionStartIncluding": "3.0.0",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:a:osgeo:geotools:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "33.7",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:a:osgeo:geotools:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "34.6",
            "versionStartIncluding": "34.0",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:a:osgeo:geotools:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "35.2",
            "versionStartIncluding": "35.0",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "OR"
  }
]

CVSS assessments

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
3.1 / 8.6
high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:NCNA: GitHub_M
3.1 / 8.6
high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:NNVD: [email protected]

Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

References

For agents and automation

Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.

Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.

Endpoints and access details

https://api.y2.dev/api/v2/cyber/cves
https://api.y2.dev/api/v2/cyber/cves/{cveId}

A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.

For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.

Agent access JSON · OpenAPI · CVE API guide