· via dev.to (home feed)
GeoServer CVE-2026-76904 patch plan: target 3.0.1, 2.28.5 or 2.27.6, verify GeoTools
A dev.to change plan for CVE-2026-76904 tells GeoServer admins to upgrade to 3.0.1, 2.28.5 or 2.27.6, confirm the matching GeoTools release is actually present, and test PostGIS-backed filters before rollout.

A change plan published on dev.to sets out how GeoServer administrators should handle CVE-2026-76904, a flaw in the GeoTools PostGIS data store. At the release level the fix looks simple — move to GeoServer 3.0.1, 2.28.5 or 2.27.6 — but the author frames the real work as operational: picking the right branch, proving the GeoTools dependency actually changed, and testing the map and feature services that lean on PostGIS filters. The goal is to avoid ending up with an updated application that still carries the vulnerable library.
Choosing the target release
According to the dev.to article, the GeoServer project published the three patched releases on August 14, 2026. The 3.0 and 2.28 lines are the actively supported choices, while 2.27.6 was cut for a series at end of life. Where a deployment has already been validated against a newer branch, the later supported release is usually the better target.
Each GeoServer release pairs with a specific patched GeoTools version: 35.1 with GeoServer 3.0.1, 34.5 with 2.28.5, and 33.6 with 2.27.6. Recording that pairing in the change record gives administrators something concrete to verify afterwards — the component itself, not just the version the console reports.
The affected scope
The flaw sits in jsonArrayContains, a function in the GeoTools PostGIS data store. Per the advisory range cited in the article, affected GeoServer builds include 3.0.0, versions 2.28.0 through 2.28.4, and everything newer than 2.23.5 but older than 2.27.6. Exploitation requires a layer backed by PostGIS 12 or later with a String or JSON field. That precondition decides who genuinely must upgrade, and it shapes which service tests and temporary restrictions belong in the change window.
Inspect the running build first
Before making changes, the article calls for capturing the running GeoServer version, installed extensions, Java runtime and packaged GeoTools libraries — the final image and its digest for container deployments, or the application archive and extension folder for WAR installs. One caution stands out: a version string in the administrative console can mask an old library copied onto the classpath. Administrators should search build artifacts for the PostGIS GeoTools component, compare its version against the fixed branch, and keep the result as before-state evidence.
Database roles and interim controls
The plan also covers the database side. It advises listing PostGIS connection pools and the role each uses, identifying layers with JSON or String columns, and reviewing grants for schema access, function execution, file reads and administrative rights. The connection role should hold only what the publication service needs: no superuser status, no unnecessary pg_read_file privilege, and a separate administrative account. If tightening a grant breaks a tested workflow, restore only the specific permission required.
Because the advisory offers no complete software workaround for the vulnerable SQL construction, least privilege and network restrictions are presented as interim measures — closing unused WFS or WMS endpoints or limiting access to trusted networks. The author is explicit that a gateway rule is not a replacement for the fixed dependency.
Test, execute, verify
Testing should run on a staging copy with representative WFS and WMS layers: a normal GetFeature request with a CQL_FILTER and a normal GetMap request with a filter, ideally against a String or JSON field on a PostGIS 12+ layer. Afterwards, confirm the expected response, check the database log for errors, and verify that the fixed package is loaded and the connection uses the intended role.
Execution starts with a backup of the data directory and configuration for rollback, then a rebuild of the application or container from the chosen release. New GeoServer packages should not be mixed with an old extension directory without checking compatibility notes. Old classpath copies of the vulnerable GeoTools component should be removed, and container base images and build outputs updated rather than just running instances. With automated rollouts, every replica should be confirmed to run the fixed digest before traffic shifts.
Exposure as a planning input
ZoomEye, as quoted in the article, recorded 58,835 product matches for GeoServer on November 25, 2026, while a CVE-specific query returned zero. The author treats the count as a way to surface deployments outside the normal inventory — useful for adding review items, but unable to show whether a layer has the required PostGIS field or a weak database role.
Why it matters
The plan underlines a lesson that generalises beyond GeoServer: a version bump is not the same as a fix. The vulnerable code lives in a bundled library that can survive an upgrade invisibly, which is why the GeoServer-to-GeoTools version pairing and before-and-after build evidence matter more than what the console reports. With no complete workaround, network and privilege controls only narrow the exposure window — the patched dependency is the actual destination. And with roughly 59,000 GeoServer deployments visible to internet scanning, the number nobody can query is how many of them match the advisory range and expose a PostGIS-backed layer with a String or JSON column.
- #geoserver
- #geotools
- #security
- #postgis
- #open-source