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

CVE-2025-11860: Twitter Feed WordPress Plugin XSS Vulnerability

CVE-2025-11860 is a stored XSS vulnerability in the Twitter Feed plugin for WordPress that allows authenticated attackers to inject malicious scripts. This post explains its impact, affected versions, and mitigation steps.

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

CVE-2025-11860 is a Stored Cross-Site Scripting (XSS) vulnerability in the Twitter Feed plugin for WordPress. The flaw affects all versions up to and including 1.3.1. The plugin fails to properly sanitize user input and escape output for the width and height parameters of the ottwitter_feed shortcode. Authenticated users with contributor-level access or higher can inject arbitrary JavaScript that executes when any visitor loads the affected page. The vulnerability is classified under CWE-79.

Critical Impact

Authenticated contributors can inject persistent JavaScript into WordPress pages, enabling session hijacking, administrative account takeover, and malicious redirects affecting any visitor who views the compromised content.

Affected Products

  • WordPress Twitter Feed plugin (ot-twitter-feed) versions 1.3.1 and earlier
  • WordPress sites allowing contributor-level or higher user registration
  • Any WordPress installation rendering the ottwitter_feed shortcode

Discovery Timeline

  • 2025-11-11 - CVE-2025-11860 published to the National Vulnerability Database
  • 2026-10-18 - Last updated in NVD database

Technical Details for CVE-2025-11860

Vulnerability Analysis

The vulnerability resides in the ottwitterfeed-shortcode.php file of the Twitter Feed plugin. The ottwitter_feed shortcode accepts width and height attributes supplied by content authors. The plugin inserts these values directly into HTML output without applying WordPress sanitization helpers such as esc_attr() or absint().

Because the shortcode is processed server-side when rendering posts and pages, injected payloads become stored XSS. The injected script executes in the browser context of every visitor who loads the page, including administrators. This gives an attacker a reliable path to escalate from a low-privilege contributor account to full site compromise.

The issue is reachable from the network and requires only low privileges. User interaction is not required beyond visiting the affected page, and the scope is changed because scripts execute in the browser context of other users.

Root Cause

The root cause is missing input validation and output encoding on shortcode attributes. The width and height parameters should be constrained to integers or sanitized with esc_attr() before being echoed into HTML. The plugin instead concatenates raw attribute values into the rendered markup, allowing attribute-breaking payloads that introduce <script> tags or event handlers such as onerror and onload.

See the WordPress Plugin Code Review for the vulnerable code path.

Attack Vector

An attacker with contributor privileges authors a post containing the ottwitter_feed shortcode. The attacker supplies a crafted width or height value that breaks out of the HTML attribute context and introduces JavaScript. When an editor, administrator, or site visitor previews or publishes the post, the script executes under the origin of the WordPress site. The payload can steal authentication cookies, perform actions on behalf of logged-in administrators, or deliver browser-based malware.

Technical details and proof-of-concept information are described in the Wordfence Vulnerability Report.

Detection Methods for CVE-2025-11860

Indicators of Compromise

  • Posts or pages containing the ottwitter_feed shortcode with unusual attribute values containing quotes, angle brackets, or event handler names such as onerror= or onload=
  • Database entries in wp_posts where post_content includes ottwitter_feed combined with <script> or javascript: strings
  • Outbound requests from site visitors to unknown third-party domains sourced from pages using the affected shortcode
  • New or modified administrator accounts created shortly after a contributor published content

Detection Strategies

  • Scan the wp_posts table for shortcode patterns matching the regex ottwitter_feed[^\]]*(width|height)="[^"]*[<>"'][^"]*"
  • Monitor WordPress audit logs for contributor accounts publishing or editing posts that use the plugin shortcode
  • Deploy a Web Application Firewall rule to flag HTTP POST requests to wp-admin/post.php containing shortcode attributes with HTML metacharacters

Monitoring Recommendations

  • Enable Content Security Policy (CSP) headers in report-only mode to surface inline script violations originating from stored content
  • Alert on privilege escalation events, specifically role changes from contributor to editor or administrator
  • Review browser console telemetry and endpoint EDR data for script execution on WordPress-hosted pages from unexpected origins

How to Mitigate CVE-2025-11860

Immediate Actions Required

  • Deactivate and remove the Twitter Feed plugin until a patched release is confirmed by the vendor
  • Audit all posts and pages for the ottwitter_feed shortcode and inspect the width and height attribute values
  • Review contributor and author accounts, disable unused accounts, and rotate credentials for privileged users
  • Invalidate active WordPress sessions and force password resets for administrators who may have viewed malicious pages

Patch Information

At the time of publication, no fixed version is referenced in the NVD entry. All versions of the Twitter Feed plugin up to and including 1.3.1 are affected. Monitor the Wordfence Vulnerability Report and the plugin's WordPress.org page for a vendor patch, and update immediately when a fixed release becomes available.

Workarounds

  • Restrict the ability to use shortcodes by limiting the unfiltered_html capability and reviewing contributor permissions
  • Place a Web Application Firewall rule in front of WordPress to block shortcode attributes containing <, >, or " characters
  • Apply a strict Content Security Policy that disallows inline scripts to limit the impact of injected payloads
  • Remove the plugin and replace it with a maintained alternative if a timely patch is not released

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.