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

CVE-2026-3875: BetterDocs WordPress Plugin XSS Vulnerability

CVE-2026-3875 is a stored cross-site scripting flaw in BetterDocs WordPress plugin that allows authenticated attackers to inject malicious scripts. This article covers technical details, affected versions, and mitigation.

Published: April 17, 2026

CVE-2026-3875 Overview

The BetterDocs plugin for WordPress contains a Stored Cross-Site Scripting (XSS) vulnerability in the betterdocs_feedback_form shortcode affecting all versions up to and including 4.3.8. This vulnerability stems from insufficient input sanitization and output escaping on user-supplied shortcode attributes, allowing authenticated attackers with contributor-level access or higher to inject arbitrary web scripts into pages. These malicious scripts execute whenever a user accesses an injected page, potentially leading to session hijacking, credential theft, or further compromise of the WordPress site.

Critical Impact

Authenticated attackers with contributor-level access can inject persistent malicious scripts that execute in the browsers of all users visiting affected pages, enabling session hijacking and potential site takeover.

Affected Products

  • BetterDocs WordPress Plugin versions up to and including 4.3.8
  • WordPress sites using vulnerable BetterDocs plugin versions
  • Any WordPress installation with contributor-level user access enabled

Discovery Timeline

  • April 16, 2026 - CVE-2026-3875 published to NVD
  • April 16, 2026 - Last updated in NVD database

Technical Details for CVE-2026-3875

Vulnerability Analysis

This Stored Cross-Site Scripting vulnerability exists within the BetterDocs feedback form shortcode implementation. The core issue lies in the plugin's failure to properly sanitize and escape user-controlled shortcode attributes before rendering them in the HTML output. When a contributor or higher-privileged user creates or edits a post containing the betterdocs_feedback_form shortcode with malicious attribute values, these values are stored in the database and rendered without proper encoding whenever the page is accessed.

The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation), which represents one of the most common web application security flaws. In this case, the attack persists across page loads because the malicious payload is stored server-side rather than requiring a specially crafted URL.

Root Cause

The root cause of this vulnerability is insufficient input validation and output escaping in the feedback-form.php shortcode view file. WordPress shortcodes accept user-defined attributes that should be treated as untrusted input. The vulnerable code path fails to apply proper sanitization functions such as esc_attr(), esc_html(), or wp_kses() before outputting attribute values in the rendered HTML. This allows attackers to break out of attribute contexts and inject arbitrary JavaScript code.

Attack Vector

The attack exploits the network-accessible nature of WordPress sites combined with the shortcode attribute parsing mechanism. An attacker requires contributor-level access or above to create or edit posts containing shortcodes. The attack flow involves:

  1. An authenticated user with contributor privileges creates a new post or edits an existing one
  2. The attacker inserts the betterdocs_feedback_form shortcode with crafted malicious attribute values containing JavaScript payloads
  3. The post is saved, storing the malicious payload in the WordPress database
  4. When any user (including administrators) views the published page, the malicious script executes in their browser context
  5. The injected script can steal session cookies, perform actions on behalf of the victim, or redirect users to malicious sites

The vulnerability does not require user interaction beyond normal page viewing, and the scope is changed as the malicious scripts execute in the context of the victim's session rather than the attacker's session.

Detection Methods for CVE-2026-3875

Indicators of Compromise

  • Unusual JavaScript code within post content containing betterdocs_feedback_form shortcode
  • Unexpected shortcode attributes with encoded characters, script tags, or event handlers
  • Browser console errors or unexpected script execution on pages with BetterDocs feedback forms
  • User reports of suspicious redirects or behavior when viewing documentation pages

Detection Strategies

  • Audit all posts and pages containing the betterdocs_feedback_form shortcode for malicious attribute values
  • Implement Content Security Policy (CSP) headers to detect and block inline script execution
  • Review WordPress database for suspicious content in wp_posts table, particularly in post_content fields containing BetterDocs shortcodes
  • Enable WordPress debug logging to capture any unusual script errors or warnings

Monitoring Recommendations

  • Deploy web application firewall (WAF) rules to detect XSS payloads in POST requests to WordPress admin endpoints
  • Monitor contributor and author user activities for suspicious post editing patterns
  • Implement real-time alerting for new posts or edits containing potentially malicious JavaScript patterns
  • Use endpoint detection to identify browser-based attacks originating from compromised WordPress pages

How to Mitigate CVE-2026-3875

Immediate Actions Required

  • Update BetterDocs plugin to version 4.3.9 or later immediately
  • Audit existing posts and pages for any injected malicious content in shortcode attributes
  • Review user accounts with contributor-level access or higher for unauthorized activity
  • Consider temporarily disabling the BetterDocs feedback form feature until the update is applied

Patch Information

The BetterDocs development team has addressed this vulnerability in version 4.3.9. The fix implements proper input sanitization and output escaping for shortcode attributes in the feedback-form.php view file. Administrators should update via the WordPress plugin update mechanism or download the patched version directly from the WordPress plugin repository. The specific changes can be reviewed in the WordPress Plugin Change Log. Additional vulnerability details are available in the Wordfence Vulnerability Report.

Workarounds

  • Restrict contributor and author role capabilities using a role management plugin until patching is complete
  • Implement a Web Application Firewall (WAF) with XSS detection rules to filter malicious payloads
  • Temporarily remove or disable the BetterDocs plugin if immediate patching is not possible
  • Add Content Security Policy headers to prevent inline script execution as a defense-in-depth measure
bash
# Example: Add CSP headers in .htaccess as temporary mitigation
# Add to WordPress root .htaccess file
Header set Content-Security-Policy "script-src 'self'; object-src 'none';"

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 Plugin Change Log

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2026-2840: Email Encoder WordPress Plugin XSS Vulnerability

  • CVE-2026-3369: WordPress Better Find and Replace XSS Flaw

  • CVE-2026-3995: OPEN-BRAIN WordPress Plugin XSS Vulnerability

  • CVE-2026-3876: Prismatic WordPress 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