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

CVE-2026-4005: Coachific Shortcode XSS Vulnerability

CVE-2026-4005 is a stored XSS flaw in the Coachific Shortcode WordPress plugin allowing authenticated attackers to inject malicious scripts. This article covers technical details, affected versions, security impact, and mitigation.

Published: April 17, 2026

CVE-2026-4005 Overview

The Coachific Shortcode plugin for WordPress contains a Stored Cross-Site Scripting (XSS) vulnerability in the userhash shortcode attribute affecting all versions up to and including 1.0. This vulnerability arises from insufficient input sanitization and output escaping, allowing authenticated attackers with Contributor-level access or above to inject malicious scripts that execute when users access compromised pages.

Critical Impact

Authenticated attackers can inject persistent malicious JavaScript code that executes in the browsers of all users viewing affected pages, potentially leading to session hijacking, credential theft, or further compromise of the WordPress site.

Affected Products

  • Coachific Shortcode WordPress Plugin version 1.0 and earlier
  • WordPress installations with Coachific Shortcode plugin enabled
  • Sites allowing Contributor-level or higher user access

Discovery Timeline

  • April 15, 2026 - CVE-2026-4005 published to NVD
  • April 15, 2026 - Last updated in NVD database

Technical Details for CVE-2026-4005

Vulnerability Analysis

This Stored Cross-Site Scripting vulnerability exists due to a context mismatch in the security controls applied to user input. The plugin uses sanitize_text_field() on the userhash parameter, which strips HTML tags but fails to escape characters that are significant in a JavaScript string context—specifically double quotes, semicolons, and parentheses. The sanitized value is then directly interpolated into a JavaScript string within a <script> tag on line 29 of coachific.php without any JavaScript-specific escaping such as wp_json_encode() or esc_js().

This creates a scenario where an attacker can break out of the JavaScript string context and inject arbitrary code. The vulnerability requires authentication at the Contributor level or above, but once exploited, the malicious scripts persist in the database and execute for all users who view the affected page, including administrators.

Root Cause

The root cause is the use of an inappropriate sanitization function for the output context. While sanitize_text_field() is effective for HTML contexts by stripping tags, it does not protect against JavaScript injection when the output is placed within a JavaScript string literal. WordPress provides context-specific escaping functions like esc_js() for JavaScript strings and wp_json_encode() for JSON contexts, but neither is used in the vulnerable code path.

Attack Vector

The attack is network-based and requires a user with at least Contributor-level privileges on the target WordPress site. The attacker creates or edits a post containing the Coachific shortcode with a crafted userhash attribute value designed to break out of the JavaScript string context. When any user—including administrators—views the page containing the malicious shortcode, the injected JavaScript executes in their browser session.

The vulnerability mechanism involves the following flow:

  1. An authenticated attacker with Contributor access creates a post using the Coachific shortcode
  2. The attacker crafts the userhash attribute with JavaScript-breaking characters (e.g., "; malicious_code(); ")
  3. The plugin's sanitize_text_field() function strips HTML but preserves JavaScript-significant characters
  4. The sanitized but still malicious value is interpolated directly into a <script> block
  5. When users visit the page, the malicious JavaScript executes in their browser context

For detailed code analysis, refer to the WordPress Plugin Code Review for line 13 and line 29 in the plugin source.

Detection Methods for CVE-2026-4005

Indicators of Compromise

  • Unusual shortcode content in post/page database entries containing JavaScript escape sequences
  • Posts created by Contributor-level users containing suspicious userhash attribute values with special characters
  • Browser console errors or unexpected script execution on pages using Coachific shortcodes
  • User reports of unexpected behavior or redirects when viewing certain pages

Detection Strategies

  • Implement Content Security Policy (CSP) headers to detect and block inline script execution anomalies
  • Monitor WordPress database for posts containing shortcodes with suspicious character patterns in attributes
  • Deploy web application firewalls (WAF) with XSS detection rules to identify injection attempts
  • Review access logs for authenticated users creating or modifying content with Coachific shortcodes

Monitoring Recommendations

  • Enable WordPress activity logging to track post creation and modification by Contributor-level users
  • Configure browser-based security monitoring to detect unexpected script execution
  • Set up alerts for CSP violation reports indicating potential XSS exploitation attempts
  • Regularly audit user-generated content containing shortcodes for malicious patterns

How to Mitigate CVE-2026-4005

Immediate Actions Required

  • Update the Coachific Shortcode plugin to the latest patched version if available
  • Review and audit all existing posts containing Coachific shortcodes for suspicious content
  • Restrict Contributor-level access to trusted users only until patched
  • Consider temporarily disabling the plugin if no patch is available

Patch Information

At the time of publication, administrators should check the WordPress Plugin Directory for updated versions that address this vulnerability. The fix requires replacing direct string interpolation with proper JavaScript escaping using functions like esc_js() or wp_json_encode(). Additional details are available in the Wordfence Vulnerability Report.

Workarounds

  • Disable the Coachific Shortcode plugin until a patch is available
  • Restrict post creation and editing capabilities to Administrator-level users only
  • Implement a Web Application Firewall (WAF) with XSS protection rules to filter malicious shortcode attributes
  • Manually audit and remove any suspicious shortcode content from existing posts
bash
# Configuration example - Disable plugin via WP-CLI
wp plugin deactivate coachific-shortcode

# List all posts containing the shortcode for manual review
wp db query "SELECT ID, post_title FROM wp_posts WHERE post_content LIKE '%[coachific%' 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.03%

  • 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 Review

  • WordPress Plugin Code Review

  • WordPress Plugin Code Review

  • WordPress Plugin Code Review

  • Wordfence Vulnerability Report
  • 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