# 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`), https://wordpress.org/plugins/wp-google-maps/
- **Affected versions:** from 9.0.6 before 10.2.06
- **Fixed in:** 10.2.06 (Update to 10.2.06 or later.)
- **Severity:** Medium 5.9 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N)
- **Weakness:** CWE-89
- **Usage among sites WPSec scans:** plugin High, affected versions Medium (as of 2026-11-26)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-google-maps
- **Fix released:** 2026-11-25
- **Published:** 2026-11-26
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3995/

## 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.

Also published later by wordfence as CVE-2026-132198.

## 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/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3995/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
