{
  "id": 22395181,
  "title": "Defending GeoServer against XML injection beyond the patch",
  "url": "https://urgent.news/2026/11/28/defending-geoserver-against-xml-injection-beyond-the-patch",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-28T15:49:12.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/onaeiuspkz/defending-geoserver-against-xml-injection-beyond-the-patch-2fnn"
  },
  "original_language": null,
  "account": "GeoServer security advisory GHSA-39mw-5chv-jh47 details a critical vulnerability CVE-2026-120705 affecting the GeoServer open-source geospatial server. The issue is an XML injection flaw in the WFS (Web Feature Service) GetFeatureById operation, which allows an attacker to inject malicious XML code into the response when the entity resolver is not active. This can lead to server-side request forgery (SSRF) and potentially expose sensitive data or enable further attacks.\n\nTo mitigate the risk, organizations should either disable WFS for anonymous users or restrict access through authentication and network rules. Implementing the GeoServer entity resolver and GeoTools PreventLocalEntityResolver checks is crucial, as they limit external resource resolution paths and address the missing parser protection. Custom XML parsing code should also disable external entities and unnecessary XInclude features.\n\nRunning GeoServer with minimal privileges and separating the data directory from unrelated secrets further reduces the potential impact. Outbound access should be controlled using egress policies that allow only necessary destinations. Monitoring WFS request logs and alerting on abnormal behavior, such as unexpected file reads and new outbound connections, helps detect potential exploitation.\n\nThe latest fixed GeoServer versions are 2.27.7, 2.28.6, and 3.0.2, with compatible GeoTools versions 33.7, 34.6, and 35.2. CISA has added the CVE to their Known Exploited Vulnerabilities (KEV) list. Implementing these controls and staying vigilant against parser failures is essential for maintaining a secure GeoServer deployment.",
  "summary": "Defending GeoServer against XML injection beyond the patch The direct fix for CVE-2026-120705 is a GeoServer or GeoTools update that restores entity resolver protection in the vulnerable WFS parsing path. A resilient defense plan also examines why the path was reachable, what the process could access and how an outbound request would appear. The official advisory describes an unauthenticated WFS…",
  "summary_source": "publisher",
  "key_points": [
    "XML injection flaw in GeoServer's WFS GetFeatureById operation",
    "Mitigation includes disabling WFS for anonymous users and restricting access",
    "Updated GeoServer versions: 2.27.7, 2.28.6, 3.0.2"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}