Skip to main content

CVE-2025-0370: Shortcodes Ultimate XSS Vulnerability

CVE-2025-0370 is a stored XSS vulnerability in Shortcodes Ultimate plugin for WordPress that lets authenticated attackers inject malicious scripts via the src parameter. This article covers technical details, impact, 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-0370 Overview

CVE-2025-0370 is a Stored Cross-Site Scripting (XSS) vulnerability in the WP Shortcodes Plugin — Shortcodes Ultimate for WordPress. The flaw affects all versions up to and including 7.3.3 and resides in the handling of the src parameter within the plugin's lightbox shortcode. Insufficient input sanitization and output escaping allow authenticated users with Contributor-level permissions or higher to inject arbitrary JavaScript into pages. The injected scripts execute in the browser of any user who accesses the affected page, including administrators. The weakness is classified under CWE-79: Improper Neutralization of Input During Web Page Generation.

Critical Impact

Authenticated Contributors can store malicious JavaScript that executes in administrator browsers, enabling session theft, account takeover, and site compromise.

Affected Products

  • Vanokhin Shortcodes Ultimate (WordPress plugin) versions * through 7.3.3
  • WordPress sites with Contributor-level or higher accounts enabled
  • Any front-end page rendering the vulnerable lightbox shortcode

Discovery Timeline

  • 2025-03-04 - CVE-2025-0370 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-0370

Vulnerability Analysis

The vulnerability resides in the lightbox shortcode handler of the Shortcodes Ultimate plugin. The src attribute passed to the shortcode is rendered into the page output without adequate sanitization or escaping. An attacker with Contributor-level access can craft a post containing a lightbox shortcode where the src parameter contains JavaScript payloads or HTML attributes that break out of the intended context.

Because Contributor accounts in WordPress can create and submit posts for review, the stored payload is persisted in the database. When an editor or administrator previews or publishes the post, the malicious script executes in their authenticated session. The scope change in the attack vector reflects script execution crossing from the plugin shortcode context into the broader WordPress administrative interface.

Root Cause

The root cause is missing output escaping in the lightbox shortcode rendering function located in includes/shortcodes/lightbox.php. The src parameter value is interpolated into HTML output without being passed through esc_attr() or an equivalent WordPress escaping function. This allows HTML and JavaScript control characters to pass through unchanged.

Attack Vector

An authenticated attacker with Contributor privileges or higher creates a post or page containing a lightbox shortcode. The src attribute of this shortcode is populated with a crafted string that injects attributes or script tags into the rendered HTML. When the content is viewed by another user, including administrators reviewing submissions, the injected JavaScript executes under that user's privileges, enabling session theft, administrative action forgery, or persistent backdoor installation.

See the WordPress Lightbox Code File and the Wordfence Vulnerability Report for technical details.

Detection Methods for CVE-2025-0370

Indicators of Compromise

  • Posts or pages containing lightbox shortcodes with src attributes that include angle brackets, javascript: URIs, or event handlers such as onerror= and onload=
  • Unexpected <script> tags or inline JavaScript in the wp_posts table where post_content references the Shortcodes Ultimate lightbox shortcode
  • New administrator accounts, modified user roles, or unauthorized plugin installations following Contributor post submissions
  • Outbound HTTP requests from administrator browsers to attacker-controlled domains shortly after reviewing Contributor content

Detection Strategies

  • Audit the wp_posts table for shortcode usage containing suspicious characters in the src parameter using SQL pattern matching
  • Deploy a Web Application Firewall (WAF) rule to inspect POST requests to wp-admin/post.php for shortcode payloads containing script injection patterns
  • Monitor WordPress audit logs for Contributor accounts creating or editing posts with lightbox shortcodes
  • Correlate administrator session activity with recent Contributor post reviews to identify anomalous actions

Monitoring Recommendations

  • Enable WordPress security logging plugins to capture user role changes, plugin installations, and option modifications
  • Centralize WordPress and web server logs in a SIEM for cross-correlation of authentication and content-modification events
  • Alert on creation of new administrator accounts, especially when preceded by Contributor content submissions
  • Track versions of the Shortcodes Ultimate plugin across managed WordPress instances to identify unpatched deployments

How to Mitigate CVE-2025-0370

Immediate Actions Required

  • Update the Shortcodes Ultimate plugin to a version later than 7.3.3 that includes the fix from WordPress Changeset #3229060
  • Review all existing posts and pages for lightbox shortcodes containing suspicious src values and remove or sanitize any injected payloads
  • Audit Contributor, Author, and Editor accounts for recent activity and disable any accounts that are not strictly required
  • Rotate credentials for administrator accounts that may have reviewed Contributor content on an unpatched instance

Patch Information

The vendor addressed the vulnerability in WordPress Changeset #3229060, which applies proper escaping to the src parameter in the lightbox shortcode. Site administrators should update to the latest version available through the WordPress plugin repository. See the Shortcodes Ultimate Developer Page for release details.

Workarounds

  • Temporarily remove or deactivate the Shortcodes Ultimate plugin until patching is possible
  • Restrict Contributor-level access to trusted users only and require manual review of all submitted content
  • Deploy a WAF rule that blocks shortcode parameters containing HTML control characters or JavaScript URIs
  • Implement a Content Security Policy (CSP) that disallows inline scripts to limit the impact of stored XSS payloads
bash
# Example WP-CLI command to check installed plugin version
wp plugin get shortcodes-ultimate --field=version

# Update the plugin to the patched release
wp plugin update shortcodes-ultimate

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.