Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-4086: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in newbiesup WP Random Button

0
Medium
VulnerabilityCVE-2026-4086cvecve-2026-4086cwe-79
Published: Sat Mar 21 2026 (03/21/2026, 03:26:32 UTC)
Source: CVE Database V5
Vendor/Project: newbiesup
Product: WP Random Button

Description

CVE-2026-4086 is a stored Cross-Site Scripting (XSS) vulnerability in the WP Random Button WordPress plugin affecting all versions up to 1. 0. The flaw arises from improper sanitization and escaping of user-supplied shortcode attributes ('cat', 'nocat', and 'text'), allowing authenticated users with Contributor-level access or higher to inject malicious scripts. These scripts execute whenever any user views the compromised page, potentially leading to session hijacking, defacement, or other malicious actions. The vulnerability does not require user interaction but does require authenticated access with limited privileges. The CVSS score is 6. 4 (medium severity), reflecting the moderate impact on confidentiality and integrity but no impact on availability. No known exploits are currently reported in the wild. Organizations using this plugin should prioritize patching or applying mitigations to prevent exploitation.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/21/2026, 04:18:51 UTC

Technical Analysis

CVE-2026-4086 is a stored Cross-Site Scripting (XSS) vulnerability identified in the WP Random Button plugin for WordPress, affecting all versions up to and including 1.0. The vulnerability stems from the plugin's random_button_html() function, which improperly handles user input from shortcode attributes 'cat', 'nocat', and 'text'. Specifically, the 'cat' and 'nocat' parameters are concatenated directly into HTML data-attributes without using esc_attr(), and the 'text' parameter is inserted into HTML content without esc_html(). This lack of proper input sanitization and output escaping allows an authenticated attacker with Contributor-level privileges or higher to inject arbitrary JavaScript code that is stored persistently within the website's content. When any user visits a page containing the malicious shortcode, the injected script executes in their browser context, potentially compromising user sessions, stealing cookies, or performing unauthorized actions on behalf of the user. The vulnerability requires authentication but no additional user interaction to trigger. The CVSS 3.1 base score of 6.4 reflects a network attack vector with low attack complexity, requiring privileges but no user interaction, and impacting confidentiality and integrity with a scope change. No patches or official fixes are currently published, and no known exploits have been reported in the wild as of the publication date.

Potential Impact

The primary impact of CVE-2026-4086 is the potential compromise of user confidentiality and integrity through stored XSS attacks. Attackers with Contributor-level access can inject malicious scripts that execute in the browsers of site visitors, including administrators and other privileged users. This can lead to session hijacking, credential theft, unauthorized actions, defacement, or distribution of malware. Since the vulnerability is stored, the malicious payload persists and affects all users who access the infected pages. Although availability is not directly impacted, the reputational damage and potential data breaches can be severe for organizations relying on the affected plugin. Given WordPress's widespread use globally, websites using WP Random Button are at risk, especially those with multiple contributors. The requirement for authenticated access limits exploitation to insiders or compromised accounts, but the risk remains significant in multi-user environments such as blogs, corporate sites, and community portals.

Mitigation Recommendations

1. Immediately restrict Contributor-level and higher user permissions to trusted individuals only, minimizing the risk of malicious shortcode injection. 2. Monitor existing content for suspicious shortcode usage and remove or sanitize any untrusted inputs in 'cat', 'nocat', and 'text' attributes. 3. Implement a Web Application Firewall (WAF) with rules to detect and block XSS payloads in shortcode attributes. 4. If possible, disable or remove the WP Random Button plugin until a security patch is released. 5. For developers or site administrators with coding expertise, apply temporary manual fixes by sanitizing and escaping shortcode attributes using esc_attr() for data-attributes and esc_html() for HTML content before output. 6. Educate content contributors about the risks of injecting untrusted code and enforce strict content review policies. 7. Regularly audit user accounts and revoke unnecessary Contributor or higher privileges. 8. Stay updated with the plugin vendor or WordPress security advisories for official patches or updates addressing this vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Wordfence
Date Reserved
2026-03-12T20:53:29.047Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69be1811f4197a8e3b78443c

Added to database: 3/21/2026, 4:01:21 AM

Last enriched: 3/21/2026, 4:18:51 AM

Last updated: 3/21/2026, 6:09:43 AM

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses