CVE-2026-76904: GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers
An SQL Injection Vulnerability has been found when executing OGC Filters with PostGIS DataStore implementation:
jsonArrayContainsfunction Requires PostGIS 12 or greater with a String or JSON field
For PostGIS 12 and greater jsonArrayContains(<column>, <pointer>, <value>) function writes <value> into generated SQL without escaping.
References
- github.com/advisories/GHSA-mqjf-5f49-2fjh
- github.com/geotools/geotools/commit/d821c4d321dd91c22e31fcd5b1ce676645da5176
- github.com/geotools/geotools/pull/5829
- github.com/geotools/geotools/releases/tag/33.6
- github.com/geotools/geotools/releases/tag/34.5
- github.com/geotools/geotools/releases/tag/35.1
- github.com/geotools/geotools/security/advisories/GHSA-mqjf-5f49-2fjh
- nvd.nist.gov/vuln/detail/CVE-2026-76904
- osgeo-org.atlassian.net/browse/GEOT-7589
- osgeo-org.atlassian.net/browse/GEOT-7958
- osgeo-org.atlassian.net/browse/GEOT-7959
Code Behaviors & Features
Detect and mitigate CVE-2026-76904 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →