# CVE-2026-120705: OSGeo GeoServer XML Injection

> Unauthenticated attackers can inject XML into GeoServer's WFS GetFeatureById query to read files or make requests; GeoServer operators should care.

- **Severity:** High 8.6 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`)
- **Exploited in the wild:** Yes, since 27 Nov 2026 (CISA KEV)
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Harmful if only installed:** No
- **Needs a specific call:** No
- **Fix available:** No
- **Published:** 30 Nov 2026
- **Updated:** 3 Dec 2026
- **Also known as:** GHSA-39mw-5chv-jh47

## What is CVE-2026-120705?

CVE-2026-120705 is a high-severity XML external entity vulnerability in Geoserver, published on 30 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-91 (XML Injection)

## Which versions are affected by CVE-2026-120705?

It affects 2 products.

An affected version is exposed as installed. No special setting or call is needed.


Products: Geoserver, Geotools.

CPE match criteria (CPE 2.3):

- `cpe:2.3:a:osgeo:geoserver:*:*:*:*:*:*:*:*` from 2.28.0 before 2.28.6
- `cpe:2.3:a:osgeo:geoserver:*:*:*:*:*:*:*:*` from 3.0.0 before 3.0.2
- `cpe:2.3:a:osgeo:geoserver:*:*:*:*:*:*:*:*` before 2.27.7
- `cpe:2.3:a:osgeo:geotools:*:*:*:*:*:*:*:*` from 34.0 before 34.6
- `cpe:2.3:a:osgeo:geotools:*:*:*:*:*:*:*:*` from 35.0 before 35.2
- `cpe:2.3:a:osgeo:geotools:*:*:*:*:*:*:*:*` before 33.7

Status by vendor (upstream, then each distribution release and vendor build):

| Who | Release | Status | Packages | Fixed in |
| --- | --- | --- | --- | --- |
| Upstream |  | fixed | `osgeo:geoserver`, `osgeo:geotools` | 2.27.7, 2.28.6, 3.0.2 |

## How do I fix CVE-2026-120705?

No fix has been published for CVE-2026-120705 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 30 Nov 2026.

## Is CVE-2026-120705 being exploited?

Yes. Attackers have exploited CVE-2026-120705 in the wild since at least 27 Nov 2026.

Public exploit code:

- GeoServer gs-wfs-core < 2.27.7/2.28.6/3.0.2 stored-query XXE (CVE-2026-120705, HIGH): caller-influenced XML is parsed without an entity resolver, so xi:include reads local files. Java differential from exact upstream fixture: vuln discloses a secret, fixed blocks. Includes lab, PoC, exploit. (github_poc): https://github.com/googlesky/CVE-2026-120705

## Other vulnerabilities in Geoserver

- [CVE-2024-36401](https://insights.sbomify.com/CVE-2024-36401/): OSGeo GeoServer GeoTools Eval Injection (critical 9.8, exploited in the wild)
- [CVE-2026-129243](https://insights.sbomify.com/CVE-2026-129243/): OSGeo GeoServer Incorrect Authorization (high 8.8, exploited in the wild)
- [CVE-2025-58360](https://insights.sbomify.com/CVE-2025-58360/): OSGeo GeoServer Improper Restriction of XML External Entity Reference (high 8.2, exploited in the wild)
- [CVE-2025-30220](https://insights.sbomify.com/CVE-2025-30220/): GeoTools, GeoServer, and GeoNetwork XML External Entity (XXE) Processing Vulnerability in XSD schema handling (critical 9.9)
- [CVE-2023-35042](https://insights.sbomify.com/CVE-2023-35042/): GeoServer RCE due to improper control of generation of code in jai-ext`Jiffle` map algebra language (critical 9.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-120705 and fix it if it is affected.

What it is: CVE-2026-120705 is a high-severity XML external entity vulnerability in Geoserver, published on 30 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: Yes. Attackers have exploited CVE-2026-120705 in the wild since at least 27 Nov 2026.
Exposure: An affected version is exposed as installed. No special setting or call is needed.

Affected product: Geoserver. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-120705/ (Markdown: https://insights.sbomify.com/CVE-2026-120705/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-120705
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-120705
- OSV: https://osv.dev/vulnerability/CVE-2026-120705

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-120705/
Summaries are generated and may contain mistakes; the official description above is the record.
