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

CVE-2025-12661: Pollcaster Plugin XSS Vulnerability

CVE-2025-12661 is a stored cross-site scripting vulnerability in Pollcaster Shortcode Plugin for WordPress that allows authenticated attackers 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-12661 Overview

The Pollcaster Shortcode Plugin for WordPress contains a Stored Cross-Site Scripting (XSS) vulnerability in all versions up to and including 1.0. The flaw exists in the height parameter of the pollcaster shortcode. Insufficient input sanitization and output escaping on user-supplied shortcode attributes allow authenticated users with contributor-level access or higher to inject arbitrary web scripts. Injected payloads execute in the browser of any user who views the affected page. The weakness is classified as CWE-79 Improper Neutralization of Input During Web Page Generation.

Critical Impact

Contributor-level accounts can persist JavaScript payloads that execute against site visitors and administrators, enabling session theft, forced actions, and site takeover paths.

Affected Products

  • Pollcaster Shortcode Plugin for WordPress — all versions through 1.0
  • WordPress sites permitting contributor-or-higher user registration
  • Any page or post rendering the pollcaster shortcode with attacker-controlled attributes

Discovery Timeline

  • 2025-11-21 - CVE-2025-12661 published to the National Vulnerability Database
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-12661

Vulnerability Analysis

The Pollcaster Shortcode Plugin registers a pollcaster shortcode that accepts user-supplied attributes, including height. The plugin passes this attribute value into rendered HTML output without sanitizing input or escaping output. An authenticated user with contributor privileges can create a draft post that includes the shortcode with a malicious height value containing HTML or JavaScript. When an editor, administrator, or site visitor views the resulting page, the browser interprets the injected markup and executes attacker-controlled script.

Stored XSS in a WordPress context can be chained to hijack administrator sessions, create rogue accounts, exfiltrate nonces, or install additional plugins. The contributor role is often available through open registration or low-friction editorial workflows, reducing the barrier to exploitation.

Root Cause

The root cause is missing sanitization of shortcode attribute input and missing output escaping when the height value is embedded in generated HTML. Secure WordPress shortcode handlers should sanitize numeric attributes with functions such as absint() or intval() and escape output with esc_attr() when rendering inside HTML attributes. The plugin performs neither step for the affected attribute. Refer to the plugin source at line 33 for the vulnerable rendering logic.

Attack Vector

Exploitation requires an authenticated account with contributor-level access or above. The attacker authors content containing the pollcaster shortcode with a crafted height attribute that breaks out of the intended attribute context. Once the content is previewed, published, or otherwise rendered, the payload executes in the victim's browser under the site's origin. See the Wordfence advisory for additional technical context.

// Vulnerability described in prose only.
// No verified public exploit code is available for CVE-2025-12661.
// See the plugin source and Wordfence advisory linked above.

Detection Methods for CVE-2025-12661

Indicators of Compromise

  • Post or page content containing [pollcaster ...] shortcodes with non-numeric height values, HTML tags, quotes, or on* event handlers
  • Draft or pending posts authored by contributor accounts that embed the pollcaster shortcode
  • Unexpected outbound requests from browsers viewing pages that render the plugin's output

Detection Strategies

  • Audit the WordPress database wp_posts table for the pollcaster shortcode and inspect attribute values for script content
  • Review web server access logs for requests to pages with the shortcode followed by anomalous JavaScript execution artifacts
  • Deploy Content Security Policy (CSP) reporting to surface inline script violations originating from rendered pages

Monitoring Recommendations

  • Alert on new contributor account creation followed by post creation containing shortcode attributes
  • Monitor administrator session activity for unexpected privilege changes, plugin installs, or user role modifications
  • Track outbound requests from editor and administrator browsers to unfamiliar domains after previewing user-submitted content

How to Mitigate CVE-2025-12661

Immediate Actions Required

  • Deactivate and remove the Pollcaster Shortcode Plugin until a fixed release is published
  • Revoke or downgrade untrusted contributor accounts and rotate credentials for accounts that authored suspicious content
  • Scan existing posts and pages for pollcaster shortcodes containing script or HTML in the height attribute and remove them

Patch Information

At the time of publication, no fixed version beyond 1.0 is listed in the NVD entry or the WordPress plugin page. Site operators should monitor the plugin repository for a security release and apply it immediately when available.

Workarounds

  • Restrict who can use the pollcaster shortcode through role or capability filters
  • Deploy a web application firewall rule that blocks shortcode attribute values containing <, >, quotes, or on*= patterns
  • Enforce a strict Content Security Policy that disallows inline scripts on pages rendering user-authored content
bash
# Disable the vulnerable plugin via WP-CLI
wp plugin deactivate pollcaster-shortcode
wp plugin delete pollcaster-shortcode

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

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.