# Mapster WP Maps <= 2.0.6 - Authenticated (Contributor+) Insecure Direct Object Reference to Arbitrary Post Modification via ACF Photo Gallery

- **ID:** WPSEC-2026-3218
- **Plugin:** Mapster WP Maps — Mapbox, MapLibre & Google Maps for WordPress (`mapster-wp-maps`), https://wordpress.org/plugins/mapster-wp-maps/
- **Affected versions:** from 0.5.13 before 2.0.7
- **Fixed in:** 2.0.7 (Update to 2.0.7 or later.)
- **Severity:** Medium 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-639
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-16)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/mapster-wp-maps
- **Fix released:** 2026-11-16
- **Published:** 2026-11-17
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3218/

## Description

The Mapster WP Maps plugin for WordPress is vulnerable to Insecure Direct Object Reference via the bundled ACF Photo Gallery 'acf_photo_gallery_edit_save' and 'acf_photo_gallery_remove_photo' AJAX actions in all versions up to, and including, 2.0.6. This is due to the handlers only verifying a nonce that is not tied to the targeted object, with no check that the user can edit the supplied post or attachment ID. This makes it possible for authenticated attackers, with Contributor-level access and above, to overwrite the title, content and post meta of arbitrary posts, pages and attachments, and to modify photo gallery post meta on arbitrary posts.

## References

- https://wpsec.com/vuln/WPSEC-2026-3218/
- https://plugins.svn.wordpress.org/mapster-wp-maps/tags/2.0.7/
- https://wordpress.org/plugins/mapster-wp-maps/

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

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.
