WP Go Maps – Google Map, OpenStreetMap, Leaflet & Store Locator <= 10.2.05 - Unauthenticated SQL Injection via 'Enable Dynamic SQL Refactors' Setting
- ID
- WPSEC-2026-3995
- Plugin
- WP Go Maps – Google Map, OpenStreetMap, Leaflet & Store Locator (wp-google-maps)
- Affected
- from 9.0.6 before 10.2.06
- Remediation
- Update to 10.2.06 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weakness
- CWE-89
- Usage
- Plugin High · Affected versions Medium among sites WPSec scans, 2026-11-26
- Attack surface
- WP Go Maps – Google Map, OpenStreetMap, Leaflet & Store Locator on WPSec AttackSurface
- Fix released
- Published
Also published later by Wordfence as CVE-2026-132198, on 2026-11-26.
Description
The WP Go Maps plugin for WordPress is vulnerable to SQL Injection via the 'Enable Dynamic SQL Refactors' option in versions 9.0.6 up to, and including, 10.2.05. The cause is that the option hooks dynamicQueryRefactor() to the WordPress 'query' filter, which rewrites every already-prepared query that contains 'wpgmza', replacing \' with ''. When the database server runs in NO_BACKSLASH_ESCAPES mode, $wpdb->prepare() escapes a quote by doubling it and leaves backslashes unchanged, so this rewrite turns a user-supplied backslash and quote into a quote that closes the string. This makes it possible for unauthenticated attackers to inject SQL into existing queries through public routes such as the /geocode-cache REST endpoint and use it to extract sensitive information from the database. Exploitation requires an administrator to have enabled the non-default 'Enable Dynamic SQL Refactors' option and the database server to run in NO_BACKSLASH_ESCAPES mode.
References
- https://wpsec.com/vuln/WPSEC-2026-3995/
- https://plugins.svn.wordpress.org/wp-google-maps/tags/10.2.06/
- https://wordpress.org/plugins/wp-google-maps/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS