Description
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.
Published: 2026-04-22
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting via shortcode attribute
Action: Patch Immediately
AI Analysis

Impact

The Simple Random Posts Shortcode plugin allows authenticated users with contributor-level access to insert arbitrary JavaScript into posts by using the "container_right_width" attribute of the "simple_random_posts" shortcode. The plugin fails to sanitize or escape this attribute before outputting it, enabling a stored XSS flaw classified as CWE‑79. When a visitor loads the affected page, the injected script executes in their browser, potentially hijacking sessions, defacing content, or redirecting to malicious sites.

Affected Systems

WordPress installations that include mkerstner's Simple Random Posts Shortcode plugin version 0.3 or earlier. The vulnerability exists in all releases up to and including 0.3; newer releases are presumed to contain the fix.

Risk and Exploitability

The CVSS score of 6.4 indicates medium severity. The EPSS score is not available, and the issue is not listed in CISA’s KEV catalog, so exploitation odds are uncertain but not zero. Attackers must first authenticate with contributor or higher privileges, then create or edit a post to embed the malicious shortcode. Once any user visits the page, the payload runs, compromising confidentiality and integrity of the victim’s session.

Generated by OpenCVE AI on April 22, 2026 at 10:05 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Simple Random Posts Shortcode plugin to a version newer than 0.3 to remove the unsanitized attribute.
  • If an upgrade is not possible, disable or delete the "simple_random_posts" shortcode from the site to eliminate the attack surface.
  • Implement custom input validation or output escaping for "container_right_width" in the plugin code to prevent future script injection.

Generated by OpenCVE AI on April 22, 2026 at 10:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 22 Apr 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 22 Apr 2026 12:15:00 +0000

Type Values Removed Values Added
First Time appeared Mkerstner
Mkerstner simple Random Posts Shortcode
Wordpress
Wordpress wordpress
Vendors & Products Mkerstner
Mkerstner simple Random Posts Shortcode
Wordpress
Wordpress wordpress

Wed, 22 Apr 2026 08:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Simple Random Posts Shortcode <= 0.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'container_right_width' Shortcode Attribute
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}


Subscriptions

Mkerstner Simple Random Posts Shortcode
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-22T15:31:34.902Z

Reserved: 2026-04-13T17:44:25.829Z

Link: CVE-2026-6246

cve-icon Vulnrichment

Updated: 2026-04-22T15:25:59.243Z

cve-icon NVD

Status : Received

Published: 2026-04-22T09:16:26.540

Modified: 2026-04-22T09:16:26.540

Link: CVE-2026-6246

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-22T11:44:02Z

Weaknesses