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-4303

CVE-2026-4303: WP Visitor Statistics Plugin XSS Vulnerability

CVE-2026-4303 is a stored cross-site scripting vulnerability in WP Visitor Statistics (Real Time Traffic) plugin for WordPress that allows authenticated attackers to inject malicious scripts. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: May 14, 2026

CVE-2026-4303 Overview

CVE-2026-4303 is a Stored Cross-Site Scripting (XSS) vulnerability in the WP Visitor Statistics (Real Time Traffic) plugin for WordPress. The flaw exists in the plugin's wsm_showDayStatsGraph shortcode and affects all versions up to and including 8.4. The plugin fails to properly sanitize input or escape output on user-supplied shortcode attributes [CWE-79]. Authenticated attackers with contributor-level access or higher can inject arbitrary JavaScript into pages. The injected script executes in the browser of any user who views the affected page, including administrators.

Critical Impact

Authenticated contributors can plant persistent JavaScript payloads that execute against site visitors and administrators, enabling session theft, admin account compromise, and full site takeover when an administrator views the injected content.

Affected Products

  • WP Visitor Statistics (Real Time Traffic) plugin for WordPress, all versions through 8.4
  • WordPress sites permitting contributor-level (or higher) account creation
  • Any site using the vulnerable wsm_showDayStatsGraph shortcode

Discovery Timeline

  • 2026-04-08 - CVE-2026-4303 published to NVD
  • 2026-04-24 - Last updated in NVD database

Technical Details for CVE-2026-4303

Vulnerability Analysis

The vulnerability is a Stored XSS issue rooted in unsafe shortcode attribute handling. The plugin registers the wsm_showDayStatsGraph shortcode in wsm_init.php and renders attribute values in wsm_statistics.php without applying WordPress escaping functions such as esc_attr() or esc_html(). Because shortcodes can be embedded inside posts and pages by users with contributor privileges, an attacker only needs the ability to author content. Once an editor or administrator publishes the post, or even previews it, the malicious script executes in their authenticated session context. The Scope:Changed nature of the issue means a contributor-level account can pivot to actions in a higher-privileged administrator context.

Root Cause

The root cause is insufficient input sanitization and output escaping on attributes passed to the wsm_showDayStatsGraph shortcode handler. Attribute values flow directly from shortcode_atts() into rendered HTML output without filtering through esc_attr(), wp_kses(), or comparable escaping APIs. This violates the WordPress secure coding requirement of escaping late and escaping all dynamic output.

Attack Vector

An authenticated attacker holding contributor permissions or higher inserts the wsm_showDayStatsGraph shortcode into a draft post or page, supplying malicious JavaScript inside one of the accepted attributes. When the post is previewed, reviewed, or published, the payload renders in the DOM and executes in the viewer's browser. Administrators reviewing contributor submissions are the highest-value targets because their cookies and nonces permit account creation, plugin installation, and arbitrary PHP execution through theme editing. Refer to the Wordfence Vulnerability Analysis and the vulnerable code in wsm_statistics.php line 2272 for technical specifics.

No verified exploit code is publicly available. The vulnerability manifests
when a contributor embeds the wsm_showDayStatsGraph shortcode with an
attribute value containing unescaped HTML or JavaScript. See the
Wordfence advisory and WordPress plugin trac references for details.

Detection Methods for CVE-2026-4303

Indicators of Compromise

  • Posts, pages, or custom post type entries containing the wsm_showDayStatsGraph shortcode authored by contributor or author roles
  • Shortcode attribute values containing <script>, onerror=, onload=, javascript:, or HTML entity-encoded payloads
  • Unexpected outbound requests from administrator browsers to attacker-controlled domains shortly after reviewing contributor content
  • New administrator accounts or modified user roles following content review activity

Detection Strategies

  • Query the wp_posts table for post_content LIKE '%wsm_showDayStatsGraph%' and review attribute values for HTML or script syntax
  • Monitor WordPress audit logs for contributor accounts publishing or editing content containing shortcodes
  • Inspect web server access logs for unusual referers or outbound POSTs originating from /wp-admin/ sessions
  • Use WordPress security scanners to flag the plugin while it remains at version 8.4 or earlier

Monitoring Recommendations

  • Alert on creation of new contributor-level accounts followed by rapid content authoring activity
  • Track administrator session anomalies such as unexpected users.php or plugin-install.php requests
  • Log and review all shortcode usage in posts authored by non-administrator roles
  • Continuously monitor the WordPress plugin changelog at the WordPress plugin trac for a patched release

How to Mitigate CVE-2026-4303

Immediate Actions Required

  • Update the WP Visitor Statistics plugin to a version newer than 8.4 once the vendor publishes a fix
  • Audit all existing posts and pages for the wsm_showDayStatsGraph shortcode and remove suspicious attribute content
  • Restrict contributor and author role assignments to trusted users only
  • Review administrator accounts and rotate credentials for any account that previewed contributor content during the exposure window

Patch Information

As of the last NVD modification date (2026-04-24), the plugin remains vulnerable through version 8.4. Monitor the WordPress Changeset Update page and the Wordfence Vulnerability Analysis for the official fixed version. Apply the update across all WordPress instances once released.

Workarounds

  • Deactivate the WP Visitor Statistics plugin until a patched version is available
  • Remove or demote contributor and author accounts that are not strictly required
  • Deploy a Web Application Firewall (WAF) rule blocking wsm_showDayStatsGraph shortcode attributes containing <, >, or script tokens
  • Disable shortcode rendering in post previews for non-administrator roles via custom capability filters
bash
# Temporarily disable the vulnerable plugin via WP-CLI
wp plugin deactivate wp-stats-manager

# Audit posts for the vulnerable shortcode
wp db query "SELECT ID, post_title, post_author FROM wp_posts \
  WHERE post_content LIKE '%wsm_showDayStatsGraph%';"

# Remove contributor capability to use unfiltered HTML
wp cap remove contributor unfiltered_html

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.06%

  • 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 Plugin Code Snippet

  • WordPress Plugin Code Snippet

  • WordPress Plugin Code Snippet

  • WordPress Plugin Code Snippet

  • WordPress Plugin Code Snippet

  • WordPress Plugin Code Snippet

  • WordPress Changeset Update

  • Wordfence Vulnerability Analysis
  • Related CVEs
  • CVE-2026-6504: Royal Elementor Addons XSS Vulnerability

  • CVE-2026-6174: CC Child Pages WordPress Plugin XSS Flaw

  • CVE-2026-6252: Meta Field Block WordPress Plugin XSS Flaw

  • CVE-2026-3694: Bold Page Builder WordPress XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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