Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2121

CVE-2026-2121: WordPress Weaver Show Posts XSS Vulnerability

CVE-2026-2121 is a stored cross-site scripting flaw in the Weaver Show Posts WordPress plugin affecting versions up to 1.8.1. Attackers with admin access can inject malicious scripts. This article covers technical details, affected versions, impact, and mitigation.

Published: March 27, 2026

CVE-2026-2121 Overview

The Weaver Show Posts plugin for WordPress contains a Stored Cross-Site Scripting (XSS) vulnerability in the add_class parameter affecting all versions up to and including 1.8.1. The vulnerability stems from insufficient input sanitization and output escaping on user-supplied attributes, allowing authenticated attackers with Administrator-level access to inject arbitrary web scripts into pages. These malicious scripts execute whenever a user accesses an injected page.

This vulnerability primarily impacts WordPress multisite installations where Administrators do not have the unfiltered_html capability, as this is the primary security control that would otherwise prevent such script injection.

Critical Impact

Authenticated attackers with Administrator privileges can inject persistent malicious scripts that execute in the browsers of all users viewing affected pages, potentially leading to session hijacking, credential theft, or further site compromise.

Affected Products

  • Weaver Show Posts plugin for WordPress versions up to and including 1.8.1
  • WordPress multisite installations without unfiltered_html capability for Administrators

Discovery Timeline

  • 2026-03-21 - CVE-2026-2121 published to NVD
  • 2026-03-23 - Last updated in NVD database

Technical Details for CVE-2026-2121

Vulnerability Analysis

This Stored Cross-Site Scripting vulnerability exists within the Weaver Show Posts plugin's widget functionality, specifically in the posts-widgets.php file. The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation).

The core issue lies in how the plugin handles the add_class parameter without proper sanitization before storing it in the database or escaping it when rendering output. When an authenticated Administrator configures a widget or shortcode with a malicious add_class value, the unsanitized input is stored persistently and later rendered without proper escaping, causing the injected script to execute in the context of any user's browser session viewing the affected page.

While this vulnerability requires Administrator-level authentication, it becomes particularly relevant in WordPress multisite environments. In these configurations, site Administrators may not possess the unfiltered_html capability—a deliberate security restriction imposed by Super Admins. This vulnerability bypasses that intended security boundary, allowing compromised or malicious Administrators to inject scripts they would otherwise be prevented from adding.

Root Cause

The root cause is insufficient input validation and output escaping in the widget parameter handling code within posts-widgets.php. Specifically, the add_class parameter accepts user input that is directly incorporated into HTML output without being passed through WordPress sanitization functions such as esc_attr() or wp_kses(). This allows HTML entities and JavaScript event handlers to be injected and stored in the database.

Attack Vector

The attack is network-based and requires the attacker to have Administrator-level authentication to the WordPress site. The attacker accesses the widget configuration interface or uses a shortcode with the vulnerable add_class parameter. By injecting a payload such as an event handler attribute containing JavaScript, the attacker can store malicious content that executes when any user—including Super Admins—views a page containing the compromised widget.

The vulnerability affects pages rendered for all site visitors, making it a stored/persistent XSS issue with the potential to impact a wide audience despite the high privilege requirement for exploitation.

Detection Methods for CVE-2026-2121

Indicators of Compromise

  • Unusual JavaScript code or event handlers (such as onerror, onload, onmouseover) appearing in widget configurations or shortcode attributes
  • Unexpected script tags or encoded JavaScript within the add_class parameter values in the WordPress database
  • Browser developer console showing execution of unfamiliar scripts on pages using Show Posts widgets
  • Reports from users experiencing unexpected redirects, pop-ups, or credential prompts on affected pages

Detection Strategies

  • Review the wp_options table for widget configurations containing suspicious script patterns or HTML event handlers
  • Implement Web Application Firewall (WAF) rules to detect XSS payloads in POST requests to widget save endpoints
  • Use WordPress security plugins to scan for known XSS patterns in stored content
  • Monitor administrator activity logs for unusual widget configuration changes

Monitoring Recommendations

  • Enable comprehensive logging of all WordPress admin actions, particularly widget and shortcode modifications
  • Configure Content Security Policy (CSP) headers to detect and report inline script execution violations
  • Regularly audit plugin configurations across all sites in multisite installations
  • Set up alerts for database modifications to widget-related options

How to Mitigate CVE-2026-2121

Immediate Actions Required

  • Update the Weaver Show Posts plugin to the latest version that addresses this vulnerability
  • Review all existing widget configurations for potentially malicious add_class parameter values
  • Temporarily disable the Weaver Show Posts plugin if an update is not yet available
  • Audit Administrator accounts for unauthorized access or suspicious activity

Patch Information

Organizations should check the WordPress Plugin Repository for updated versions of the Weaver Show Posts plugin that include proper input sanitization and output escaping for the add_class parameter. For detailed vulnerability information, refer to the Wordfence Vulnerability Report.

Workarounds

  • Remove or restrict Administrator access in multisite environments to only trusted users pending a patch
  • Implement server-side input validation using a Web Application Firewall to block XSS payloads
  • Enable Content Security Policy headers to mitigate the impact of any successfully injected scripts
  • Consider temporarily replacing the plugin with an alternative that has been audited for XSS vulnerabilities
bash
# WordPress wp-config.php CSP Header Configuration
# Add to your theme's functions.php or use a security plugin

# Example: Add Content Security Policy header to mitigate XSS impact
add_action('send_headers', function() {
    header("Content-Security-Policy: script-src 'self' 'unsafe-inline' https://trusted-cdn.com;");
});

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 Score4.4

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • WordPress Code Reference

  • WordPress Code Reference

  • WordPress Code Reference

  • WordPress Code Reference

  • Wordfence Vulnerability Report

  • YouTube Security Video
  • Related CVEs
  • CVE-2026-4512: reCaptcha by WebDesignBy XSS Vulnerability

  • CVE-2026-3361: WP Store Locator Plugin XSS Vulnerability

  • CVE-2026-1923: Social Rocket WordPress Plugin XSS Flaw

  • CVE-2026-6048: Flipbox Addon for Elementor 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