Skip to main content
Vulnerability Database/CVE-2026-13179

CVE-2026-13179: WP Maps Plugin XSS Vulnerability

CVE-2026-13179 is a stored XSS vulnerability in the WP Maps plugin for WordPress that lets authenticated attackers inject malicious scripts via the shapes_values parameter. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-13179 Overview

CVE-2026-13179 is a Stored Cross-Site Scripting (XSS) vulnerability in the WP Maps WordPress plugin, which provides Google Maps, OpenStreetMap, Mapbox, store locator, listing, directory, and filter functionality. The flaw affects all versions up to and including 4.9.8 and stems from insufficient input sanitization and output escaping on the shapes_values parameter [CWE-79]. Authenticated attackers with subscriber-level access or above can inject arbitrary web scripts that execute when any user visits an affected page. The issue is compounded by two broken access controls: the fc-call-nonce nonce is exposed to all frontend visitors via window.wpgmp_local.nonce, and the secondary _wpnonce check in the drawing handler can be bypassed by omitting the parameter entirely.

Critical Impact

Any authenticated subscriber can persist arbitrary JavaScript into map drawing data, enabling session theft, administrative account takeover, and site-wide redirection when administrators or visitors view the affected pages.

Affected Products

  • WP Maps – Google Maps, OpenStreetMap, Mapbox, Store Locator, Listing, Directory & Filters plugin for WordPress
  • All versions up to and including 4.9.8
  • Confirmed vulnerable branches include 4.9.3 and 4.9.5

Discovery Timeline

  • 2026-09-25 - CVE-2026-13179 published to the National Vulnerability Database
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-13179

Vulnerability Analysis

The vulnerability resides in the WP Maps plugin's drawing module, which stores user-submitted shape data through the shapes_values parameter. The plugin accepts this input through an AJAX endpoint without applying sufficient sanitization, and renders the stored content on the frontend without proper output escaping. As a result, malicious markup supplied by a low-privilege user is persisted into the plugin's data store and later executed in the browser context of any visitor who loads the affected map page.

The endpoint is nominally protected by two nonce mechanisms, but both are ineffective. The fc-call-nonce nonce is embedded in window.wpgmp_local.nonce on every frontend map page, so any authenticated subscriber can read it directly from the DOM. The secondary _wpnonce check in the drawing handler is implemented such that omitting the parameter bypasses validation entirely rather than failing closed.

Root Cause

The root cause is twofold. First, user-controlled values passed in shapes_values are not sanitized against HTML or JavaScript before storage and are not escaped on output. Second, the authorization model relies on nonces that are either publicly exposed to frontend visitors or that fail open when absent. Review of the plugin source in modules/drawing/views/manage.php, modules/shortcode/views/put-wpgmp.php, and wp-google-map-plugin.php confirms the missing escaping and the nonce handling behavior.

Attack Vector

An attacker with a WordPress subscriber account loads any public page containing a WP Maps shortcode and extracts the fc-call-nonce value from window.wpgmp_local.nonce. The attacker then issues an authenticated AJAX request to the drawing endpoint with a crafted shapes_values payload containing JavaScript, omitting the _wpnonce parameter to bypass the secondary check. The payload is stored server-side and executes in the browser of every subsequent visitor to the affected map page, including administrators.

No verified proof-of-concept code is published. See the Wordfence Vulnerability Report and the WordPress Plugin Changeset Overview for technical details.

Detection Methods for CVE-2026-13179

Indicators of Compromise

  • Unexpected <script>, <img onerror=...>, or event-handler attributes stored in WP Maps drawing or shape records in the WordPress database.
  • POST requests to WordPress admin-ajax.php with action values associated with the WP Maps drawing module and a populated shapes_values parameter but no _wpnonce parameter.
  • Subscriber-level accounts issuing AJAX requests to map or drawing management endpoints normally used only by editors or administrators.

Detection Strategies

  • Inspect wp_options, wp_postmeta, and plugin-specific tables for serialized shape data containing HTML tags or JavaScript keywords such as onerror, onload, or javascript:.
  • Alert on HTTP requests to admin-ajax.php where the action parameter targets the WP Maps drawing handler and the _wpnonce field is missing from the request body.
  • Correlate newly registered subscriber accounts with subsequent write operations against plugin AJAX endpoints.

Monitoring Recommendations

  • Log and retain full request bodies for admin-ajax.php traffic from authenticated sessions to support forensic review.
  • Monitor administrator browser sessions for unexpected outbound requests originating from pages that render WP Maps shortcodes.
  • Track plugin version inventory across WordPress estates and flag any installation of WP Maps at version 4.9.8 or earlier.

How to Mitigate CVE-2026-13179

Immediate Actions Required

  • Update the WP Maps plugin to a version later than 4.9.8 on all WordPress installations.
  • Audit existing WP Maps drawing and shape data for stored payloads and remove any entries containing HTML or scripting content.
  • Review subscriber-level accounts and remove any that are unknown, unused, or created during the exposure window.

Patch Information

The vendor addressed the issue in a release following 4.9.8. Refer to the WordPress Plugin Changeset Overview and the Wordfence Vulnerability Report for the fixed version and the specific code changes applied to sanitization and nonce validation.

Workarounds

  • Restrict open user registration on the WordPress site to prevent untrusted creation of subscriber accounts.
  • Deploy a web application firewall rule that blocks requests to the WP Maps drawing AJAX action when the _wpnonce parameter is absent or when shapes_values contains HTML tags.
  • Temporarily deactivate the WP Maps plugin on sites where patching cannot be performed immediately and map functionality is non-essential.
bash
# Example WP-CLI commands to inventory and update the vulnerable plugin
wp plugin get wp-google-map-plugin --field=version
wp plugin update wp-google-map-plugin
wp user list --role=subscriber --fields=ID,user_login,user_registered

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.