The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-4279

CVE-2026-4279: Bread & Butter WordPress Plugin XSS Flaw

CVE-2026-4279 is a stored cross-site scripting vulnerability in the Bread & Butter WordPress plugin affecting versions up to 8.2.0.25. Authenticated attackers can inject malicious scripts via shortcode attributes.

Published: April 23, 2026

CVE-2026-4279 Overview

The Bread & Butter plugin for WordPress contains a Stored Cross-Site Scripting (XSS) vulnerability in the breadbutter-customevent-button shortcode affecting all versions up to and including 8.2.0.25. The vulnerability stems from insufficient input sanitization and output escaping on the event shortcode attribute, allowing authenticated attackers with Contributor-level access or higher to inject malicious JavaScript that executes when users click the affected button.

Critical Impact

Authenticated attackers can inject persistent malicious scripts into WordPress pages, potentially leading to session hijacking, credential theft, or malware distribution when users interact with compromised content.

Affected Products

  • Bread & Butter WordPress Plugin versions up to and including 8.2.0.25
  • WordPress sites using the breadbutter-customevent-button shortcode
  • Sites granting Contributor-level or higher access to untrusted users

Discovery Timeline

  • 2026-04-22 - CVE-2026-4279 published to NVD
  • 2026-04-22 - Last updated in NVD database

Technical Details for CVE-2026-4279

Vulnerability Analysis

This Stored Cross-Site Scripting vulnerability exists in the customEventShortCodeButton() function within the Bread & Butter plugin's shortcode handler. The function processes the event attribute from the breadbutter-customevent-button shortcode and directly interpolates the user-supplied value into a JavaScript string within an onclick HTML attribute. This direct interpolation occurs without proper sanitization using WordPress security functions such as esc_attr() or esc_js().

Notably, the plugin contains a sister function called customEventShortCode() that correctly implements esc_js() for the same attribute, demonstrating that the vulnerability results from an inconsistent security implementation rather than a fundamental design flaw. The button variant simply omitted the same security controls that were properly applied to the related function.

The vulnerability requires the attacker to have at least Contributor-level access to WordPress, meaning they must be able to create or edit posts that use shortcodes. Once the malicious payload is injected, it persists in the database and executes whenever any user accesses the page and clicks the injected button element.

Root Cause

The root cause is missing output escaping in the customEventShortCodeButton() function located in /src/Base/Shortcode.php. While the similar customEventShortCode() function at line 364 properly applies esc_js() to the event attribute, the button variant at line 380 fails to implement the same escaping. This inconsistency between two related functions handling the same type of user input represents a classic case of incomplete security implementation (CWE-79).

Attack Vector

The attack is executed via the network and requires authenticated access with at least Contributor privileges. The attacker crafts a malicious shortcode with JavaScript payload embedded in the event attribute, such as event handlers or script injection patterns. When the post is saved, the payload is stored in the WordPress database. Subsequently, when any user views the page and interacts with the rendered button, the injected JavaScript executes in their browser context, potentially enabling session theft, phishing overlays, or further exploitation.

The vulnerability mechanism involves the event attribute value being placed directly into an onclick attribute within the HTML output. Without proper escaping, an attacker can break out of the JavaScript string context and inject arbitrary script code that runs with the privileges of the victim user viewing the page.

Detection Methods for CVE-2026-4279

Indicators of Compromise

  • Unusual or obfuscated content in posts using the breadbutter-customevent-button shortcode
  • JavaScript code or HTML event handlers appearing in the event attribute of affected shortcodes
  • Reports of unexpected browser behavior or pop-ups when users interact with plugin-generated buttons
  • Suspicious post modifications by Contributor-level users containing encoded or escaped characters

Detection Strategies

  • Review WordPress database for posts containing breadbutter-customevent-button shortcodes with suspicious event attribute values
  • Implement Web Application Firewall (WAF) rules to detect XSS payloads in shortcode attributes
  • Monitor WordPress audit logs for unusual post editing activity by lower-privileged users
  • Scan rendered HTML output for unexpected inline JavaScript within button onclick handlers

Monitoring Recommendations

  • Enable WordPress activity logging for all post creation and modification events
  • Configure SentinelOne Singularity to monitor for suspicious script execution patterns in browser contexts
  • Implement Content Security Policy (CSP) headers to mitigate the impact of successful XSS exploitation
  • Regularly audit user privileges and remove unnecessary Contributor access

How to Mitigate CVE-2026-4279

Immediate Actions Required

  • Update the Bread & Butter plugin to a patched version (when available)
  • Review and audit all existing posts using the breadbutter-customevent-button shortcode for malicious content
  • Temporarily disable the affected shortcode functionality if updates are not available
  • Reduce the number of users with Contributor-level or higher access privileges

Patch Information

Review the plugin update status via the Wordfence Vulnerability Report for the latest patch information. The fix should involve adding proper output escaping using esc_js() in the customEventShortCodeButton() function, mirroring the secure implementation already present in customEventShortCode(). The vulnerable code can be reviewed at Shortcode.php line 380.

Workarounds

  • Remove or disable the Bread & Butter plugin until a patch is available
  • Use WordPress capability management plugins to restrict shortcode usage to trusted administrators only
  • Implement server-side input validation to filter potentially malicious event attribute values
  • Deploy a WAF rule to block requests containing XSS patterns in shortcode parameters
bash
# WordPress CLI command to find potentially affected posts
wp db query "SELECT ID, post_title FROM wp_posts WHERE post_content LIKE '%breadbutter-customevent-button%' AND post_status = 'publish';"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWordpress

  • SeverityMEDIUM

  • CVSS Score6.4

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • WordPress Shortcode File Line 364

  • WordPress Shortcode File Line 380

  • WordPress Shortcode File Line 364

  • WordPress Shortcode File Line 380

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2026-7448: LatePoint WordPress Plugin XSS Vulnerability

  • CVE-2026-7332: LatePoint WordPress Plugin XSS Vulnerability

  • CVE-2026-7457: WordPress LatePoint Plugin XSS Vulnerability

  • CVE-2026-6672: SliceWP Affiliates Plugin XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English