Skip to main content

Bread & Butter WordPress Plugin CVE-2026-4279

| EUVDEUVD-2026-24686 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-04-22 Wordfence GHSA-g8vq-gpv7-9mmq
6.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker gains Contributor credentials
  2. Delivery
    Creates or edits WordPress page
  3. Exploit
    Embeds malicious shortcode with unescaped 'event' attribute
  4. Install
    Payload renders in page HTML at onclick attribute
  5. C2
    Victim visits page
  6. Execute
    JavaScript executes in victim's browser context
  7. Impact
    Script 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Bread & Butter: AI-Powered Lead Intelligence 0 ≤8.2.0.25

Affected Packages

euvd bread_butter_ai_powered_lead_intelligence no fix

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

NVD PRIMARY 6.4 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

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

EPSS Score
0.0%
Top 99% exploitable
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy