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

CVE-2026-40497: FreeScout Privilege Escalation Flaw

CVE-2026-40497 is a privilege escalation vulnerability in FreeScout that allows CSS injection via mailbox signatures to exfiltrate CSRF tokens. This post covers technical details, affected versions, impact, and mitigation.

Published: April 23, 2026

CVE-2026-40497 Overview

CVE-2026-40497 is a CSS Injection vulnerability affecting FreeScout, a free self-hosted help desk and shared mailbox application. The vulnerability exists due to an incomplete fix for a previous security advisory (GHSA-jqjf-f566-485j). While the Helper::stripDangerousTags() function removes <script>, <form>, <iframe>, and <object> tags, it fails to strip <style> tags from the mailbox signature field. This oversight allows attackers with access to mailbox settings to inject malicious CSS that can exfiltrate CSRF tokens from other users viewing conversations in the affected mailbox.

Critical Impact

An attacker with mailbox settings access (admin or agent with mailbox permission) can leverage CSS attribute selectors to steal CSRF tokens, enabling privilege escalation from agent to admin and allowing unauthorized state-changing actions such as creating admin accounts or modifying user credentials.

Affected Products

  • FreeScout versions prior to 1.8.213
  • Self-hosted FreeScout help desk installations
  • FreeScout shared mailbox deployments

Discovery Timeline

  • 2026-04-21 - CVE CVE-2026-40497 published to NVD
  • 2026-04-23 - Last updated in NVD database

Technical Details for CVE-2026-40497

Vulnerability Analysis

This vulnerability stems from an incomplete remediation of a previously reported XSS issue in FreeScout's mailbox signature handling. The original vulnerability allowed Cross-Site Scripting attacks through the mailbox signature field, which was addressed by implementing the Helper::stripDangerousTags() sanitization function. However, this function only strips a limited set of dangerous HTML tags (script, form, iframe, and object), leaving <style> tags completely unfiltered.

The mailbox signature is saved via a POST request to /mailbox/settings/{id} and subsequently rendered without proper escaping using the Blade template syntax {!! $conversation->getSignatureProcessed([], true) !!}. The double exclamation marks in Blade indicate raw, unescaped output, which directly outputs the signature content including any injected <style> tags.

Compounding the issue, the application's Content Security Policy (CSP) is configured with style-src * 'self' 'unsafe-inline', which explicitly permits inline styles to execute without restriction. This permissive CSP configuration enables the injected CSS to function as intended by the attacker.

Root Cause

The root cause is twofold: first, the incomplete sanitization in Helper::stripDangerousTags() that fails to account for CSS injection attacks via <style> tags; second, the use of unescaped output rendering ({!! !!}) for user-controlled content in conjunction with an overly permissive Content Security Policy that allows 'unsafe-inline' styles.

Attack Vector

The attack leverages CSS attribute selectors to perform a side-channel data exfiltration technique. An attacker with access to mailbox settings injects carefully crafted CSS rules into the signature field. These CSS selectors can match against input elements containing the CSRF token, using attribute substring matching to leak the token character by character through background image requests to an attacker-controlled server.

When a victim (admin or another agent) views a conversation in the affected mailbox, the injected styles execute in their browser context. The CSS rules trigger outbound requests that encode the CSRF token value. Once the attacker obtains the victim's CSRF token, they can forge requests to perform any state-changing action as the victim, including creating new administrator accounts, changing email addresses or passwords, and modifying system configurations.

Detection Methods for CVE-2026-40497

Indicators of Compromise

  • Unusual <style> tags present in mailbox signature fields containing CSS attribute selectors
  • Outbound requests from user browsers to unknown external domains triggered during conversation viewing
  • Mailbox signature configurations containing CSS rules with input[value^= or similar attribute selectors
  • Unexpected administrative account creations or privilege changes

Detection Strategies

  • Monitor mailbox signature fields for HTML content containing <style> tags
  • Implement Content Security Policy violation reporting to detect inline style injections
  • Audit administrative actions for anomalies following signature field modifications
  • Review web server logs for unusual POST requests to /mailbox/settings/ endpoints with HTML payloads

Monitoring Recommendations

  • Enable logging for all mailbox configuration changes in FreeScout
  • Implement browser-side monitoring for CSP violations related to style-src directives
  • Set up alerts for new administrator account creations or privilege escalation events
  • Monitor for unusual patterns in user session activity following mailbox access

How to Mitigate CVE-2026-40497

Immediate Actions Required

  • Upgrade FreeScout to version 1.8.213 or later immediately
  • Audit existing mailbox signatures for any injected <style> tags or suspicious CSS content
  • Review recent administrative actions and account changes for signs of compromise
  • Rotate CSRF tokens and invalidate existing sessions as a precaution

Patch Information

FreeScout has released version 1.8.213 which contains an updated fix addressing this CSS injection vulnerability. The patch extends the stripDangerousTags() function to also remove <style> tags from user-supplied content. Organizations should apply this update immediately. For technical details, refer to the GitHub Security Advisory GHSA-fh99-wr77-pxq3 and the associated commit.

Workarounds

  • If immediate patching is not possible, manually audit and sanitize all mailbox signature fields to remove <style> tags
  • Restrict mailbox settings access to only trusted administrators until the patch is applied
  • Implement a stricter Content Security Policy that removes 'unsafe-inline' from style-src directives
  • Consider temporarily disabling custom mailbox signatures until the update can be deployed
bash
# Upgrade FreeScout to patched version
cd /var/www/freescout
git fetch --all --tags
git checkout 1.8.213
php artisan freescout:after-app-update

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechFreescout

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Release Version 1.8.213
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-fh99-wr77-pxq3
  • Related CVEs
  • CVE-2026-39384: FreeScout Privilege Escalation Vulnerability

  • CVE-2026-40496: FreeScout Auth Bypass Vulnerability

  • CVE-2026-40589: FreeScout Information Disclosure Flaw

  • CVE-2026-40591: FreeScout Auth Bypass 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