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

CVE-2025-10194: WordPress Shortcode Button XSS Vulnerability

CVE-2025-10194 is a stored XSS flaw in WordPress Shortcode Button plugin allowing authenticated attackers to inject malicious scripts. This article covers technical details, affected versions, security impact, and mitigation strategies.

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-10194 Overview

CVE-2025-10194 is a Stored Cross-Site Scripting (XSS) vulnerability in the Shortcode Button plugin for WordPress. The flaw affects all versions up to and including 1.1.9. It stems from insufficient input sanitization and output escaping on user-supplied attributes passed to the plugin's button shortcode. Authenticated users with contributor-level access or above can inject arbitrary JavaScript that executes when any visitor loads the affected page. The vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation.

Critical Impact

Contributor-level attackers can inject persistent JavaScript into WordPress pages, enabling session hijacking, credential theft, and administrative account takeover when a privileged user views the compromised content.

Affected Products

  • WordPress Shortcode Button plugin — all versions through 1.1.9
  • Any WordPress site that permits contributor-level accounts and has the plugin active
  • Sites relying on the plugin's button shortcode for content authoring

Discovery Timeline

  • 2025-10-15 - CVE-2025-10194 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-10194

Vulnerability Analysis

The Shortcode Button plugin exposes a button shortcode that authors embed in posts and pages. Shortcode attributes supplied by the author are rendered into the page's HTML output. The plugin does not sanitize these attributes on input, nor does it escape them on output. As a result, attribute values containing HTML or JavaScript payloads are written directly into the DOM.

Because the payload is stored in post content, it executes for every visitor who loads the page. This changes the scope of the attack from a single session to any user who accesses the injected page, including administrators. The Wordfence advisory documents the affected shortcode handler, and the plugin source in trac shows where attribute values are emitted without escaping.

Root Cause

The root cause is the absence of both sanitize_text_field()-style input filtering and context-appropriate output escaping such as esc_attr() or esc_html() on shortcode attributes. WordPress's shortcode API returns attribute values as raw strings, and the responsibility for escaping rests with the plugin author. This plugin passes attribute values directly into the rendered HTML.

Attack Vector

An attacker requires an authenticated account with contributor privileges or higher. The attacker creates or edits a post containing a button shortcode with a malicious attribute value carrying a JavaScript payload. Once the post is saved and a victim visits the rendered page, the browser parses and executes the injected script in the site's origin. The attacker can then perform actions in the victim's session, exfiltrate cookies not protected by HttpOnly, or pivot toward administrator account takeover.

No verified public exploit code is available. See the Wordfence Vulnerability Report for further technical detail.

Detection Methods for CVE-2025-10194

Indicators of Compromise

  • Posts or pages authored by contributor-level users containing button shortcodes with unusual attribute values such as onerror=, onclick=, or embedded <script> fragments.
  • Unexpected outbound requests from visitor browsers to attacker-controlled domains when loading pages that use the plugin.
  • New administrator accounts, changed user roles, or modified plugin/theme files following contributor activity.

Detection Strategies

  • Query the WordPress database for post_content rows matching the button shortcode combined with common XSS tokens (javascript:, onerror, onload, <script).
  • Review web server access logs for POST requests to wp-admin/post.php and wp-admin/admin-ajax.php from contributor accounts around suspected injection times.
  • Enable Content Security Policy (CSP) reporting to capture inline script and event handler violations on pages rendered by the plugin.

Monitoring Recommendations

  • Alert on creation or promotion of WordPress user accounts and on role changes to editor or administrator.
  • Monitor plugin file integrity and audit posts revised by low-privilege authors before publication.
  • Track browser console errors and CSP reports for scripts sourced from unexpected origins on plugin-rendered pages.

How to Mitigate CVE-2025-10194

Immediate Actions Required

  • Update the Shortcode Button plugin to a version later than 1.1.9 as soon as the vendor publishes a fix, or deactivate and remove the plugin if no patched release is available.
  • Audit all existing posts and pages for button shortcode usage and remove any attributes containing script or event handler content.
  • Restrict contributor-level and above accounts to trusted users and review recent role assignments.

Patch Information

At the time of publication, the NVD record does not identify a fixed version. Administrators should monitor the WordPress plugin page and the Wordfence advisory for the release that addresses CVE-2025-10194. Apply updates through the WordPress admin dashboard or via WP-CLI once available.

Workarounds

  • Deactivate the Shortcode Button plugin until a patched version is released.
  • Revoke contributor and author privileges from untrusted accounts, or require editorial review before publication of any post containing the button shortcode.
  • Deploy a Content Security Policy that blocks inline scripts and event handler attributes to reduce the impact of stored XSS payloads.
bash
# Disable the vulnerable plugin using WP-CLI
wp plugin deactivate shortcode-button
wp plugin delete shortcode-button

# Identify posts containing the button shortcode for review
wp db query "SELECT ID, post_title, post_author FROM wp_posts \
  WHERE post_content LIKE '%[button%' AND post_status IN ('publish','draft','pending');"

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.