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

CVE-2025-11808: WordPress Street View Plugin XSS Vulnerability

CVE-2025-11808 is a stored cross-site scripting vulnerability in the Shortcode for Google Street View WordPress plugin affecting versions up to 0.5.7. This article covers technical details, impact analysis, 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-11808 Overview

CVE-2025-11808 is a Stored Cross-Site Scripting (XSS) vulnerability in the Shortcode for Google Street View plugin for WordPress. The flaw affects all versions up to and including 0.5.7. It originates from insufficient input sanitization and output escaping on the id attribute of the streetview shortcode. Authenticated attackers with contributor-level access or higher can inject arbitrary JavaScript into pages. The injected scripts execute in the browser of any user who views an affected page. The vulnerability is tracked under CWE-79.

Critical Impact

Authenticated contributors can store persistent JavaScript payloads that execute against site visitors and administrators, enabling session theft, account takeover, and content manipulation.

Affected Products

  • Shortcode for Google Street View plugin for WordPress — all versions through 0.5.7
  • WordPress sites that allow contributor-level or higher accounts to publish content
  • Any WordPress deployment with the vulnerable wp-google-street-view-shortcode plugin installed

Discovery Timeline

  • 2025-11-21 - CVE-2025-11808 published to NVD
  • 2026-10-08 - Last updated in NVD database

Technical Details for CVE-2025-11808

Vulnerability Analysis

The vulnerability resides in the streetview shortcode handler of the plugin. The handler accepts an id attribute from user-supplied shortcode input and renders it into the generated HTML output. Because the plugin does not apply adequate sanitization on input or escaping on output, attacker-controlled values pass through unchanged. An authenticated contributor can craft a post containing a streetview shortcode with a malicious id payload. Once the post is viewed, the browser parses and executes the injected script in the context of the WordPress site origin.

Root Cause

The root cause is missing output escaping on the id shortcode attribute, as documented in the plugin source. The handler should apply esc_attr() or an equivalent context-aware escaping function before emitting the attribute into HTML. Instead, the raw value is concatenated into the rendered markup, breaking the HTML attribute boundary when a payload contains quote characters and script-triggering constructs.

Attack Vector

Exploitation requires an authenticated WordPress account with contributor privileges or higher. The attacker creates or edits a post containing a streetview shortcode whose id attribute holds an XSS payload. When the post is rendered, the browser executes the stored JavaScript. Because the scope is changed, the payload can affect administrators and other visitors, enabling cookie theft, forced actions through the WordPress REST API, and persistence through administrative account hijack. See the Wordfence advisory for additional details.

Detection Methods for CVE-2025-11808

Indicators of Compromise

  • Posts or pages containing [streetview id="..."] shortcodes with unexpected characters such as ", <, >, or onerror= inside the id attribute
  • New or modified administrator accounts created shortly after contributor-authored content is viewed
  • Outbound requests from site visitors to unknown third-party domains referenced in post HTML
  • Browser console errors on pages rendering the streetview shortcode

Detection Strategies

  • Scan the wp_posts table for shortcode occurrences and flag id values containing HTML or JavaScript syntax
  • Review audit logs for contributor accounts publishing or editing posts that embed the streetview shortcode
  • Compare installed plugin version against 0.5.7 and lower to identify vulnerable instances
  • Inspect rendered page HTML for <script> tags or event handlers originating from shortcode-generated regions

Monitoring Recommendations

  • Enable WordPress audit logging to capture post creation and edit events by contributor-level accounts
  • Monitor web server access logs for unusual request patterns targeting pages that render the shortcode
  • Alert on administrator session activity originating from IP addresses that previously accessed contributor-authored content
  • Integrate web application firewall telemetry with centralized log collection to detect XSS payload patterns

How to Mitigate CVE-2025-11808

Immediate Actions Required

  • Deactivate the Shortcode for Google Street View plugin on all WordPress sites running version 0.5.7 or earlier until a patched release is confirmed
  • Audit existing posts and pages for streetview shortcode usage and remove any suspicious id attribute values
  • Restrict contributor-level account creation and review current contributor accounts for legitimacy
  • Rotate credentials and session tokens for administrator accounts that may have viewed malicious content

Patch Information

As of the last NVD update on 2026-10-08, no fixed version is listed in the public advisory. Monitor the Wordfence vulnerability report and the plugin repository for an official patch. Apply the vendor update immediately upon release and verify that the id attribute is escaped using esc_attr() in the shortcode handler.

Workarounds

  • Remove the plugin entirely if the Google Street View shortcode is not required
  • Restrict the use_shortcodes or publishing capabilities for contributor roles via a role management plugin
  • Deploy a web application firewall rule to block shortcode input containing HTML tags or JavaScript event handlers
  • Require editor-level review and approval of all contributor-submitted posts before publication
bash
# Disable the vulnerable plugin via WP-CLI
wp plugin deactivate wp-google-street-view-shortcode
wp plugin delete wp-google-street-view-shortcode

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

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.