Skip to main content
Vulnerability Database/CVE-2025-11813

CVE-2025-11813: WordPress Responsive iframe GoogleMap XSS

CVE-2025-11813 is a stored cross-site scripting vulnerability in the Responsive iframe GoogleMap plugin for WordPress that allows contributors to inject malicious scripts. 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-2025-11813 Overview

CVE-2025-11813 is a Stored Cross-Site Scripting (XSS) vulnerability in the Responsive Iframe GoogleMap plugin for WordPress. The flaw affects all versions up to and including 1.0.2. It stems from insufficient input sanitization and output escaping on the width and height attributes of the responsive_map shortcode. Authenticated attackers with contributor-level access or higher can inject arbitrary JavaScript into pages. The payload executes in the browser of any user who views the affected content [CWE-79].

Critical Impact

Contributor-level users can store JavaScript that runs in administrator and visitor browsers, enabling session theft, account takeover, and WordPress site compromise.

Affected Products

  • Responsive Iframe GoogleMap WordPress plugin, versions ≤ 1.0.2
  • WordPress sites allowing Contributor or higher role registration
  • WordPress deployments relying on the vulnerable responsive_map shortcode

Discovery Timeline

  • 2025-10-22 - CVE-2025-11813 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-11813

Vulnerability Analysis

The Responsive Iframe GoogleMap plugin registers a responsive_map shortcode used to embed Google Maps iframes within WordPress posts and pages. The shortcode accepts user-supplied width and height attributes that are rendered directly into HTML output. The plugin does not sanitize these attributes on input or escape them on output.

An authenticated attacker with contributor privileges can craft a post containing a responsive_map shortcode whose width or height value breaks out of the HTML attribute context. The payload injects arbitrary script tags or event handlers into the rendered page. When an administrator previews or publishes the post, or when any visitor browses the published page, the script executes in their browser session.

The stored nature of the injection means the payload persists in the WordPress database and executes repeatedly for every page view. Impact includes administrative session hijacking, forced actions via the WordPress REST API, and persistent backdoor installation through plugin or theme modification.

Root Cause

The root cause is missing input validation and output escaping on shortcode attributes. The plugin passes width and height values into the iframe markup without applying WordPress functions such as esc_attr() or absint(). See the vulnerable source file at line 80 for the affected code path.

Attack Vector

Exploitation requires an authenticated session with at least contributor-level privileges on the target WordPress site. The attacker inserts the responsive_map shortcode into post content with a malicious width or height attribute containing a quote-escape followed by an HTML event handler or inline script. The scope changes to any user rendering the post, making this a cross-privilege attack path from contributor to administrator.

Technical details are available in the Wordfence Vulnerability Report #47a04186.

Detection Methods for CVE-2025-11813

Indicators of Compromise

  • Posts or pages containing [responsive_map] shortcodes with unusual characters in width or height attributes, such as quotes, angle brackets, or on*= handlers
  • New or modified WordPress users with elevated roles created shortly after a contributor edited content
  • Outbound requests from administrator browsers to unexpected domains after viewing posts containing the shortcode
  • Unexpected modifications to wp-config.php, theme files, or plugin files following contributor activity

Detection Strategies

  • Query the wp_posts table for post_content matching the responsive_map shortcode and inspect attribute values for script content
  • Enable WordPress audit logging to capture content changes made by contributor-level accounts
  • Deploy a web application firewall rule to flag shortcode parameters containing <, >, ", or javascript: substrings

Monitoring Recommendations

  • Monitor the WordPress plugin installation and version inventory for the Responsive Iframe GoogleMap plugin at version 1.0.2 or earlier
  • Alert on new administrator account creation or role elevation events in WordPress audit logs
  • Review Content Security Policy violation reports for inline script execution on pages containing map embeds

How to Mitigate CVE-2025-11813

Immediate Actions Required

  • Deactivate the Responsive Iframe GoogleMap plugin until a patched version is published by the vendor
  • Audit all posts and pages for responsive_map shortcode usage and remove or sanitize any suspicious attribute values
  • Restrict contributor-level account creation and review existing contributor accounts for legitimacy
  • Rotate administrator session cookies and credentials if exploitation is suspected

Patch Information

As of the last NVD modification date (2026-06-17), no fixed version has been documented in the available advisory data. Monitor the official WordPress plugin page for an updated release beyond version 1.0.2.

Workarounds

  • Remove the plugin and replace Google Maps embeds with manually sanitized iframe markup authored by trusted editors
  • Restrict the use of shortcodes in posts authored by contributor-level accounts using a role-management plugin
  • Enforce a strict Content Security Policy that disallows inline script execution and restricts frame sources to trusted domains
bash
# Disable the vulnerable plugin via WP-CLI
wp plugin deactivate responsive-iframe-googlemap
wp plugin delete responsive-iframe-googlemap

# Audit posts for the vulnerable shortcode
wp db query "SELECT ID, post_title FROM wp_posts WHERE post_content LIKE '%[responsive_map%'"

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.