Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2026-2480
WordPress vulnerability analysis and mitigation

Overview

CVE-2026-2480 is a Stored Cross-Site Scripting (XSS) vulnerability in the WP Shortcodes Plugin — Shortcodes Ultimate for WordPress, affecting all versions up to and including 7.4.10. The flaw exists in the max_width attribute of the su_box shortcode due to insufficient input sanitization and output escaping on user-supplied attributes. It was published on March 31, 2026, with a patch advisory added to the GitHub Advisory Database on April 1, 2026. The vulnerability carries a CVSS v3.1 base score of 6.4 (Medium) (GitHub Advisory).

Technical details

The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-Site Scripting). Specifically, the box.php shortcode handler fails to properly sanitize or escape the max_width attribute before rendering it in page output, allowing arbitrary JavaScript to be embedded in the stored HTML. An authenticated attacker with at least contributor-level WordPress access can craft a post or page containing a malicious [su_box max_width="..."] shortcode, and the injected script executes in the browsers of any user who subsequently views that page. Relevant vulnerable code is located in includes/shortcodes/box.php at lines 107 and 113 of the 7.4.9 tag (GitHub Advisory).

Impact

Successful exploitation allows authenticated contributors to persistently inject arbitrary JavaScript into WordPress pages, which executes in the browsers of all subsequent visitors without any additional user interaction. This can result in session hijacking, credential theft, unauthorized data exfiltration, and defacement of page content. The scope is changed (S:C), meaning the impact extends beyond the attacker's own session to affect other users of the site (GitHub Advisory).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time (GitHub Advisory). The EPSS score is approximately 0.03–0.045%, placing it in the 14th percentile for exploitation likelihood within the next 30 days. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires a low-privilege authenticated account (contributor or above), which limits the attack surface compared to unauthenticated vulnerabilities.

Exploitation steps

  1. Reconnaissance: Identify a WordPress site running WP Shortcodes Plugin — Shortcodes Ultimate version 7.4.10 or earlier. This can be done by checking the plugin version in the site's /wp-content/plugins/shortcodes-ultimate/readme.txt or via passive enumeration tools.
  2. Obtain contributor access: Register or compromise an account with at least contributor-level privileges on the target WordPress site.
  3. Craft malicious shortcode: Create or edit a post/page and insert a payload such as [su_box max_width="1px\" onmouseover=\"alert(document.cookie)\""]Content[/su_box] or a more sophisticated payload that exfiltrates session cookies to an attacker-controlled server.
  4. Publish the page: Submit the post for review or publish it directly (depending on role permissions), causing the malicious attribute to be stored in the WordPress database.
  5. Trigger execution: When any authenticated or unauthenticated user visits the injected page, the browser renders the unsanitized max_width attribute and executes the embedded JavaScript, enabling session hijacking or further attacks (GitHub Advisory).

Indicators of compromise

  • Logs: WordPress access logs showing POST requests to wp-admin/post.php or the REST API from contributor-level accounts containing su_box shortcode content with unusual max_width values (e.g., containing quotes, angle brackets, or JavaScript keywords).
  • Database: Suspicious entries in the wp_posts table where post_content contains su_box shortcodes with max_width attributes embedding script tags, event handlers (e.g., onmouseover, onerror), or encoded JavaScript.
  • Network: Outbound requests from victim browsers to unknown external domains shortly after loading pages containing su_box shortcodes, potentially carrying cookie or session data in query parameters.
  • File System: Unexpected modifications to includes/shortcodes/box.php if an attacker has escalated to file-write access following initial XSS exploitation.

Mitigation and workarounds

Update the WP Shortcodes Plugin — Shortcodes Ultimate to a version newer than 7.4.10 that includes the security fix for the su_box shortcode's max_width attribute sanitization (GitHub Advisory). The patch is tracked in the WordPress plugin repository changeset 3489360. As interim mitigations: restrict contributor-level access to only fully trusted users; implement Content Security Policy (CSP) headers to reduce XSS impact; and audit existing posts and pages for suspicious su_box shortcode attributes, particularly any max_width values containing script-like content.

Community reactions

The vulnerability was noted by Wordfence in their threat intelligence database and received standard aggregation coverage from vulnerability tracking services including VulDB, CIRCL, ENISA EUVD, and cvefeed.io. No significant researcher commentary, vendor statements beyond the patch, or notable media coverage has been identified for this moderate-severity vulnerability (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-86801HIGH8.8
  • todo-lists-for-membership-sites
NoNoSep 17, 2026
CVE-2026-87963HIGH8.6
  • yo
NoNoSep 17, 2026
CVE-2026-91016MEDIUM5.3
  • motors-car-dealership-classified-listings
NoYesSep 17, 2026
CVE-2026-91019MEDIUM4.9
  • mage-eventpress
NoYesSep 17, 2026
CVE-2026-91017LOW3.7
  • robokassa
NoYesSep 17, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management