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

CVE-2026-40568: FreeScout Stored XSS Vulnerability

CVE-2026-40568 is a stored XSS flaw in FreeScout's mailbox signature feature that allows authenticated users to inject malicious code. This post covers the technical details, affected versions, and mitigation steps.

Published: April 23, 2026

CVE-2026-40568 Overview

CVE-2026-40568 is a stored Cross-Site Scripting (XSS) vulnerability affecting FreeScout, a free self-hosted help desk and shared mailbox application. The vulnerability exists in the mailbox signature feature where an incomplete blocklist-based sanitization function fails to prevent malicious HTML and JavaScript injection. Attackers with signature editing permissions can inject persistent payloads that execute automatically when any agent or administrator opens a conversation in the affected mailbox.

Critical Impact

Any authenticated user with ACCESS_PERM_SIGNATURE permission can inject arbitrary HTML and JavaScript, enabling session hijacking, phishing overlays, email exfiltration, and self-propagating worm behavior across all mailboxes.

Affected Products

  • FreeScout versions prior to 1.8.213

Discovery Timeline

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

Technical Details for CVE-2026-40568

Vulnerability Analysis

This stored XSS vulnerability arises from inadequate input sanitization in FreeScout's mailbox signature functionality. The core issue lies in the Helper::stripDangerousTags() function located at app/Misc/Helper.php:568, which implements a blocklist-based approach to HTML sanitization. The function only filters four specific HTML tags: script, form, iframe, and object. Critically, it does not remove or sanitize event handler attributes such as onerror, onload, onclick, or similar JavaScript execution vectors.

When a mailbox signature is saved through the MailboxesController::updateSave() method at app/Http/Controllers/MailboxesController.php:267, HTML elements like <img>, <svg>, and <details> containing event handler attributes pass through the sanitization process unchanged and are persisted to the database.

The vulnerability is then triggered during rendering when the signature is output as raw HTML using the Blade template engine's {!! !!} tag in editor_bottom_toolbar.blade.php:6. Additionally, jQuery's .html() method at main.js:1789-1790 re-inserts the content into the visible DOM, causing the injected event handlers to execute.

Root Cause

The root cause is the use of an incomplete blocklist-based sanitization approach rather than a proper allowlist-based HTML sanitization strategy. The blocklist only covers four HTML tags and completely ignores dangerous event handler attributes. Modern XSS attacks frequently leverage event handlers on permitted HTML elements rather than relying on blocked tags like <script>. The combination of raw HTML output in Blade templates and DOM manipulation via jQuery's .html() method compounds the vulnerability by providing multiple execution contexts for the injected payloads.

Attack Vector

The attack vector requires network access and low-privilege authentication. An attacker needs only the ACCESS_PERM_SIGNATURE (sig) permission on a mailbox, which is a delegatable, non-admin permission. Once the malicious signature is saved, the payload fires automatically without any victim interaction whenever any agent or administrator opens any conversation in the affected mailbox.

The exploitation path involves crafting HTML elements with event handler attributes that bypass the incomplete blocklist. Elements such as <img src=x onerror=...> or <svg onload=...> can be used to execute arbitrary JavaScript. Under certain conditions such as IE11 or weakened CSP configurations, attackers can achieve session hijacking. In all browsers regardless of CSP, phishing overlays remain effective. The vulnerability also enables chaining to admin-level actions including email exfiltration via mass assignment and self-propagating worm behavior across all mailboxes.

Detection Methods for CVE-2026-40568

Indicators of Compromise

  • Mailbox signatures containing HTML elements with event handler attributes such as onerror, onload, onclick, onmouseover, or similar JavaScript execution vectors
  • Unusual database entries in the mailbox signature table containing <img>, <svg>, or <details> tags with inline event handlers
  • Browser console errors or unexpected network requests originating from the help desk conversation view
  • Reports of phishing overlays or unexpected pop-ups appearing when agents view conversations

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block requests containing event handler attributes in signature update endpoints
  • Monitor application logs for signature update requests containing suspicious HTML patterns
  • Perform regular database audits scanning mailbox signatures for potentially malicious HTML content
  • Deploy browser-based security monitoring to detect unexpected script execution in the help desk context

Monitoring Recommendations

  • Enable detailed logging for all signature modification operations in FreeScout
  • Configure alerts for any signature containing HTML elements beyond basic formatting tags
  • Monitor for unusual session token usage patterns that could indicate session hijacking
  • Track cross-mailbox activity anomalies that could indicate worm-like propagation behavior

How to Mitigate CVE-2026-40568

Immediate Actions Required

  • Upgrade FreeScout to version 1.8.213 or later immediately
  • Audit all existing mailbox signatures for potentially malicious HTML content containing event handlers
  • Temporarily restrict ACCESS_PERM_SIGNATURE permissions to trusted administrators only until the patch is applied
  • Review application logs for any suspicious signature modification activity

Patch Information

The vulnerability is fixed in FreeScout version 1.8.213. The patch addresses the incomplete sanitization by implementing proper HTML filtering that removes dangerous event handler attributes in addition to blocking malicious HTML tags. Organizations should update to this version or later as soon as possible.

For technical details on the fix, refer to the GitHub commit for the security update and the GitHub Release 1.8.213. Additional information is available in the GitHub Security Advisory GHSA-w2f5-6wcv-677r.

Workarounds

  • Implement a Content Security Policy (CSP) header that restricts inline script execution, though this may not fully mitigate the vulnerability in all scenarios
  • Remove signature editing permissions from non-administrative users until the patch can be applied
  • Use a web application firewall to filter requests containing event handler attributes in mailbox signature fields
  • Consider temporarily disabling the mailbox signature feature if immediate patching is not possible

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechFreescout

  • SeverityHIGH

  • CVSS Score8.5

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Commit Update

  • GitHub Release 1.8.213

  • GitHub Security Advisory GHSA-w2f5-6wcv-677r
  • Related CVEs
  • CVE-2026-40567: FreeScout Email XSS Vulnerability

  • CVE-2026-40565: Freescout Help Desk XSS Vulnerability

  • CVE-2026-40496: FreeScout Auth Bypass Vulnerability

  • CVE-2026-40497: FreeScout Privilege Escalation Flaw
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