[Exploited] CVE-2026-120705: OSGeo GeoServer XML Injection Vulnerability
VulnPulse explainer
GeoServer WFS flaw CVE-2026-120705 is in KEV: XML smuggled into an ID lets anyone read server files or make it fetch URLs. Limit anonymous WFS and update
GeoServer's built-in WFS 2.0 stored query GetFeatureById pasted the caller's ID straight into XML, so one anonymous request could pull out a text file the server can read or the response from a URL the attacker chose. CISA added it to KEV on November 27.
Contents
Who is affected
GeoServer 2.27.6 or earlier, 2.28.0 to 2.28.5, and 3.0.0 to 3.0.1 with WFS reachable from outside. The affected components are gs-wfs-core and GeoTools gt-metadata (33.6 or earlier, 34.0 to 34.5, 35.0 to 35.1). Fixed in GeoServer 2.27.7, 2.28.6 and 3.0.2, and GeoTools 33.7, 34.6 and 35.2. The 2.27 line is past end of life.
In plain words
Picture an order form where, instead of a part number, you write "and also enclose the warehouse ledger," and the clerk treats that as an instruction and mails the ledger back. The form never treated what was in the box as plain text.
How it works
WFS is the OGC standard for pulling feature data, and GeoServer exposes the WFS 2.0 stored query GetFeatureById, which fetches features by ID, through the public GetFeature operation. The query dropped the ID into an XML template with plain text substitution, so a value containing quotes and angle brackets could end the attribute early and add new elements, such as an XInclude. The assembled XML was then parsed without GeoServer's entity resolver, so the injected reference resolved like any other. What was read comes back inside the error message. When at least one layer is open to anonymous users the contents come back; if not, the file is still read but not sent back. CISA lists CWE-91, CWE-611 and CWE-918, and the GitHub advisory gives a CVSS 3.1 score of 8.6. The fixed releases route stored query parsing through GeoServer's resolver, and GeoTools now also checks where redirects lead.
How the attack unfolds
- An attacker looks for GeoServer instances where WFS is open to anyone
- They send a single request with an XML fragment inside the GetFeatureById ID value; no login and no right to create stored queries is needed
- The server follows the injected reference, opening a text file the GeoServer process can read or fetching an HTTP or HTTPS URL of the attacker's choosing
- The contents return inside the error response. The GeoServer team describes this as step 3 of a five-step chain that forges an admin cookie and ends in code execution; step 2, CVE-2026-129243, entered KEV the same day
What to do
- GeoServer admins: move to 3.0.2 on 3.0 or 2.28.6 on 2.28. On 2.27 or older, use 2.27.7 to get by and then move to a supported line
- Developers who embed GeoTools in their own apps: update gt-metadata to 33.7, 34.6 or 35.2
- Admins who cannot update yet: the advisory's workaround is to restrict or turn off WFS for anonymous users through service security, or to disable WFS if you do not use it
- GeoServer admins: if you suspect file contents were read, change administrator passwords. The step 4 advisory notes that a file disclosure can hand over both an admin's password digest and the cookie signing key, in which case changing the key alone does not help
- US federal agencies: the KEV due date is November 30
Not yet known
- How this bug was used in real attacks and what was read with it. The Hacker News attributed reports of exploitation to watchTowr on November 25, but no write-up from watchTowr itself could be found, and the project's own documents do not discuss exploitation
- This advisory says no right to create stored queries is needed, while the CVE-2026-129243 advisory calls anonymously created stored queries the entry point to this bug. Which route real attacks took is not known
- As of November 28, CVE-2026-120705 has no published record at cve.org or NVD
Sources
- CISA Known Exploited Vulnerabilities Catalog
- GHSA-39mw-5chv-jh47 (CVE-2026-120705)
- GeoServer: Security Update - November 2026
- GHSA-rv5g-g2r9-58rj (CVE-2026-129243)
- GHSA-hgm3-wq4h-8vvq (CVE-2026-129245)
- GeoServer 3.0.2 Release
- GeoServer 2.27.7 Release
- GeoServer: About
- The Hacker News (2026-11-25)
Written in our own words by VulnPulse from the original article and public sources. Check the sources for authoritative details. Updated:
Original notice (source text)
OSGeo GeoServer OsGeo GeoServer contains an XML injection vulnerability that allows an unauthenticated remote attacker to cause the server to read local text files accessible to the GeoServer process or fetch attacker-specified HTTP or HTTPS URLs via a crafted ID parameter in the WFS 2.0 GetFeatureById stored query. This vulnerability can be chained with CVE-2026-129244, CVE-2026-129243, CVE-2026-129245, and CVE-2026-129242 to achieve unauthenticated remote code execution on an affected GeoServer instance.
On 11/28/2026, 03:19 AM, CISA Known Exploited Vulnerabilities published "[Exploited] CVE-2026-120705: OSGeo GeoServer XML Injection Vulnerability" (type: Advisory). CISA lists it as known exploited (KEV). The vendor / NVD rating is CVSS 8.6 (High). CVE: CVE-2026-120705.