Upgrading GeoServer After CVE-2026-76904: A Practical Change Plan
Upgrading for CVE-2026-76904 looks simple at the release level: move to GeoServer 3.0.1, 2.28.5, or 2.27.6. The operational work is in choosing the branch, proving the GeoTools dependency changed, and testing the map and feature services that use PostGIS filters. A careful plan reduces the chance of leaving a vulnerable package beside a new application file.
Set the target
The GeoServer project released the three fixed versions on August 14, 2026. The 3.0 and 2.28 lines are the main supported choices, while 2.27.6 was issued for an end-of-life series. A later supported release is often the better target if the deployment has tested it.
Record the fixed GeoTools version that belongs to the selected GeoServer release: 35.1 for the 3.0.1 release, 34.5 for 2.28.5, and 33.6 for 2.27.6. This mapping helps confirm that the correct component is present.
Define the affected scope
CVE-2026-76904 affects the jsonArrayContains function in the GeoTools PostGIS data store. The relevant GeoServer versions include 3.0.0, 2.28.0 through 2.28.4, and versions later than 2.23.5 and earlier than 2.27.6. Exploitation requires a layer backed by PostGIS 12 or later with a String or JSON field.
The advisory range determines who must upgrade. The layer conditions help decide which service tests and temporary restrictions belong in the change window.
Compare the current build
Capture the running GeoServer version, the installed extensions, the Java runtime, and the packaged GeoTools libraries. In a container deployment, inspect the final image and its digest. In a WAR deployment, inspect the application archive and extension folder.
A version string in the administrative console may not reveal an old library copied into the classpath. Search the build artifacts for the PostGIS GeoTools component and compare its version with the fixed branch. Record the result before the change so the after-state can be verified.
Review data stores and roles
List PostGIS connection pools and the database role used by each. Identify layers with JSON or String columns. Review grants for schema access, function execution, file reads, and administrative rights.
The connection role should have the least access the publication service needs. Remove superuser status and any unnecessary pg_read_file right. Keep an administrative account separate from the GeoServer service account. If a restriction breaks a tested workflow, restore only the specific grant that is required.
Plan the test
Use a staging copy with representative WFS and WMS layers. Send a normal GetFeature request with a CQL_FILTER and a normal GetMap request with a filter. Test a JSON or String field on a PostGIS 12 or later layer where possible.
Confirm the expected result and review the database log for errors. Check that the fixed package is loaded and that the connection uses the intended role. Keep the request and response evidence with the change record.
Execute the upgrade
Back up the data directory and the configuration needed for rollback. Rebuild the application or container from the selected fixed release. Do not mix a new GeoServer package with an old extension directory without checking the compatibility notes.
Remove old classpath copies of the vulnerable GeoTools component. Update container base images and build outputs, not only running instances. If the deployment uses automated rollouts, verify that every replica receives the fixed digest before traffic is shifted.
Temporary controls
The advisory does not offer a complete software workaround for the vulnerable SQL construction. Least privilege and network restrictions can lower impact and reachability while the upgrade moves through the change process.
Consider closing unused WFS or WMS endpoints, limiting access to trusted networks, and removing unnecessary database grants. A gateway rule is not a substitute for the fixed dependency, but it may reduce the window during a controlled rollout.
Exposure data as a planning input
ZoomEye recorded 58,835 product matches for app="GeoServer" on November 25, 2026. The CVE-specific query returned zero. The product count can help identify deployments outside the normal inventory, but it cannot show whether a layer has the required PostGIS field or a weak database role.
Use the count to add review items. Use the application owner and database evidence to close them.
Completion checks
The change is complete when the running build is at least one of the fixed releases, the matching fixed GeoTools component is present, the service uses the intended restricted role, and representative filtered requests still work.
Preserve the before-and-after build evidence, the database grant review, and the failure path for rollback. A rollback to the vulnerable release should remain an emergency action with a dated follow-up, not a normal operating state.
Top comments (0)