What the vulnerability does
01Description
The Simple Random Posts Shortcode plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'container_right_width' attribute of the 'simple_random_posts' shortcode in all versions up to, and including, 0.3 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Explanation of Vulnerability in Simple Terms
02Summary
Simple Random Posts Shortcode versions 0.3 and earlier contain a cross-site scripting (XSS) vulnerability that allows authenticated users to inject malicious scripts. The vulnerability has scope change, meaning injected code can affect other users and site functionality. Site administrators should update to a version newer than 0.3 to mitigate this risk.
What an attacker can do
03Attacker Capabilities
Inject malicious JavaScript that executes in other users' browsers and affects site functionality.
Potential impact on your site
04Site Impact
Authenticated users can inject scripts affecting other visitors and site behavior; update the plugin immediately.
Conditions required to exploit
05Prerequisites
Attacker must have a low-privilege user account (e.g., contributor or subscriber role) on the site.
Key dates
06Disclosure timeline
April 22, 2026
CVE published
April 22, 2026
Record updated