# WP Google Map <= 1.9.9 - Authenticated (Custom+) SQL Injection via JSON Import Categories

- **ID:** WPSEC-2026-3676
- **Plugin:** Maps Plugin using Google Maps for WordPress – WP Google Map (`gmap-embed`), https://wordpress.org/plugins/gmap-embed/
- **Affected versions:** from 1.9.5 before 2.0.0
- **Fixed in:** 2.0.0 (Update to 2.0.0 or later.)
- **Severity:** Medium 5.3 (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N)
- **Weakness:** CWE-89
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-21)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/gmap-embed
- **Fix released:** 2026-11-20
- **Published:** 2026-11-21
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3676/

## Description

The WP Google Map plugin for WordPress is vulnerable to SQL Injection via the categories in imported JSON files in versions 1.9.5 up to, and including, 1.9.9. This is due to each category object from the uploaded file being passed to $wpdb->insert() without restricting its keys, so crafted object keys are placed unescaped in the query's column list. This makes it possible for authenticated attackers with access to the plugin's map management to inject SQL into queries and extract sensitive information from the database. By default these are administrators, which matters on multisite networks where a site administrator is not a super admin. When a site owner lowers the plugin's 'Minimum Role for Map Edit' setting, users of that role, down to Subscriber, can exploit it too.

## References

- https://wpsec.com/vuln/WPSEC-2026-3676/
- https://plugins.svn.wordpress.org/gmap-embed/tags/2.0.0/
- https://wordpress.org/plugins/gmap-embed/

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

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.
