Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker gains Contributor credentials
-
DeliveryCreates or edits WordPress page
-
ExploitEmbeds malicious shortcode with unescaped 'event' attribute
-
InstallPayload renders in page HTML at onclick attribute
-
C2Victim visits page
-
ExecuteJavaScript executes in victim's browser context
-
ImpactScript steals session token or performs account takeover
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to possess valid WordPress Contributor-level account credentials (PR:L in CVSS vector). The 'breadbutter-customevent-button' shortcode must be used on a published or draft page or post that the attacker can edit. No special plugin configuration is required; the vulnerability exists by default in all installations of affected versions. The malicious shortcode executes without additional user interaction on the attacker's part (UI:N), though the injected script may require a victim to interact with the injected button element. Sites restricting Contributor role assignment to trusted users only significantly limit exploitation surface; conversely, sites with open registration or automatic Contributor promotion face higher risk. |
| Impact | CVSS 6.4 (AV:N/AC:L/PR:L/UI:N/S:C) signals moderate real-world risk with important nuances. Network vector and low complexity favor attacker accessibility, but the PR:L (Contributor-level privilege requirement) and UI:N (no user interaction needed for injection) mean attackers must first gain WordPress account access-a significant friction point. The S:C (scope change) and impact ratings (C:L/I:L) confirm cross-site script execution affecting other users. No KEV or POC status provided in input, so active exploitation cannot be confirmed, but the vulnerability requires only a valid WordPress account, making it more tractable than unauthenticated network exploits. The inconsistency between the two similar functions (one properly escaped, one not) suggests this is a maintenance oversight rather than a design flaw, increasing likelihood that patching will be straightforward. For WordPress multisite or sites with permissive Contributor access policies, real-world risk approaches the CVSS rating; for heavily restricted environments, risk is lower. No patch version provided in input data, leaving remediation timeline uncertain. |
| Exploit ScenarioDerived | An attacker with WordPress Contributor credentials (obtained via phishing, password reuse, or employee compromise) logs into the target WordPress site and creates or edits a page. The attacker embeds a malicious shortcode such as [breadbutter-customevent-button event="alert('XSS')"] or more sophisticated payloads targeting session cookies. When a site administrator or other high-privilege user views the page, the unescaped JavaScript in the onclick attribute executes, stealing the session token or redirecting the user to a credential-harvesting page. Because the script injection is stored in the page content, it persists and affects all subsequent visitors. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 22, 2026
Stored cross-site scripting in Bread & Butter plugin for WordPress up to version 8.2.0.25 allows authenticated attackers with Contributor-level access to inject arbitrary JavaScript via the 'event' attribute of the 'breadbutter-customevent-button' shortcode. The vulnerability arises from missing output escaping in the customEventShortCodeButton() function, which directly interpolates unsanitized user input into an onclick HTML attribute. Scripts execute in the context of any user viewing the affected page, enabling session hijacking, credential theft, or malicious content injection.
RemediationAI
Update Bread & Butter plugin to a version newer than 8.2.0.25 as soon as available (exact patched version not confirmed in provided data-check WordPress plugin repository for latest release). The fix requires the plugin developers to apply esc_js() or esc_attr() escaping to the 'event' attribute in customEventShortCodeButton(), mirroring the correct implementation in customEventShortCode(). In the interim, WordPress administrators can mitigate risk by restricting Contributor-level role assignment to trusted users only; audit existing Contributor accounts and demote unnecessary ones. Additionally, remove or replace any existing 'breadbutter-customevent-button' shortcodes from published pages and posts until patched, as malicious instances may persist in page revision history. Site administrators using plugins like Wordfence can enable Web Application Firewall rules to block inline onclick event injection patterns. These compensating controls reduce but do not eliminate risk, as determined attackers with Contributor access can still craft payloads. Upgrading to the patched version remains the definitive fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The Bread & Butter plugin implements shortcode functionality for WordPress via the customEventShortCodeButton() and customEventShortCode() functions in src/Base/Shortcode.php. Both functions accept an 'event' attribute intended to specify JavaScript event handlers. The root cause (CWE-79: Improper Neutralization of Input During Web Page Generation) stems from the button variant failing to apply WordPress escaping functions when constructing the onclick attribute, whereas the sister function correctly uses esc_js(). The vulnerability affects the shortcode parser's attribute interpolation, which occurs server-side during page rendering but executes client-side JavaScript in user browsers. CPE data indicates the vulnerable product is 'breadbutter:bread_&_butter:_ai-powered_lead_intelligence' across all versions up to 8.2.0.25.
Know when Bread Butter gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
The Bread & Butter plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'breadbutter-customevent-button' shortcode in all versions up to, and including, 8.2.0.25. This is due to insufficient input sanitization and output escaping on the 'event' shortcode attribute. The customEventShortCodeButton() function takes the 'event' attribute value and directly interpolates it into a JavaScript string within an onclick HTML attribute without applying esc_attr() or esc_js(). Notably, the sister function customEventShortCode() properly uses esc_js() for the same attribute, but this was omitted in the button variant. 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 the page and clicks the injected button.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-24686
GHSA-g8vq-gpv7-9mmq
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB