Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.geotools/gt-jdbc-postgis
  4. ›
  5. CVE-2026-76904

CVE-2026-76904: GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers

August 21, 2026

An SQL Injection Vulnerability has been found when executing OGC Filters with PostGIS DataStore implementation:

  • jsonArrayContains function 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 →

Affected versions

All versions starting from 30.5.0 before 33.6.0, all versions starting from 34.0.0 before 34.5.0, all versions starting from 35.0.0 before 35.1.0

Fixed versions

  • 33.6.0
  • 34.5.0
  • 35.1.0

Solution

Upgrade to versions 33.6.0, 34.5.0, 35.1.0 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

maven/org.geotools/gt-jdbc-postgis/CVE-2026-76904.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 08 Sep 2026 00:18:10 +0000.