Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2026-40568— FreeScout Vulnerable to XSS via Mailbox Signature Due to Incomplete HTML Sanitization

CVSS 8.5 · High EPSS 0.03% · P10
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-40568

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
FreeScout Vulnerable to XSS via Mailbox Signature Due to Incomplete HTML Sanitization
Source: NVD (National Vulnerability Database)
Vulnerability Description
FreeScout is a free self-hosted help desk and shared mailbox. Versions prior to 1.8.213 have a stored cross-site scripting (XSS) vulnerability in the mailbox signature feature. The sanitization function `Helper::stripDangerousTags()` (`app/Misc/Helper.php:568`) uses an incomplete blocklist of only four HTML tags (`script`, `form`, `iframe`, `object`) and does not remove event handler attributes. When a mailbox signature is saved via `MailboxesController::updateSave()` (`app/Http/Controllers/MailboxesController.php:267`), HTML elements such as `<img>`, `<svg>`, and `<details>` with event handler attributes like `onerror` and `onload` pass through sanitization unchanged and are stored in the database. The signature is then rendered as raw HTML via the Blade `{!! !!}` tag in `editor_bottom_toolbar.blade.php:6` and re-inserted into the visible DOM by jQuery `.html()` at `main.js:1789-1790`, triggering the injected event handlers. Any authenticated user with the `ACCESS_PERM_SIGNATURE` (`sig`) permission on a mailbox -- a delegatable, non-admin permission -- can inject arbitrary HTML and JavaScript into the mailbox signature. The payload fires automatically, with no victim interaction, whenever any agent or administrator opens any conversation in the affected mailbox. This enables session hijacking (under CSP bypass conditions such as IE11 or module-weakened CSP), phishing overlays that work in all browsers regardless of CSP, and chaining to admin-level actions including email exfiltration via mass assignment and self-propagating worm behavior across all mailboxes. Version 1.8.213 fixes the issue.
Source: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
Source: NVD (National Vulnerability Database)
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: NVD (National Vulnerability Database)
Vulnerability Title
FreeScout 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
FreeScout是FreeScout公司的一个使用 PHP(Laravel 框架)构建的超轻量级且功能强大的免费开源帮助台和共享收件箱。 FreeScout 1.8.213之前版本存在安全漏洞,该漏洞源于邮箱签名功能中的清理函数Helper::stripDangerousTags使用不完整的阻止列表且未移除事件处理程序属性,可能导致具有ACCESS_PERM_SIGNATURE权限的认证用户注入任意HTML和JavaScript,触发会话劫持或钓鱼攻击。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
freescout-help-deskfreescout < 1.8.213 -

II. Public POCs for CVE-2026-40568

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-40568

登录查看更多情报信息。

Same Patch Batch · freescout-help-desk · 2026-04-21 · 20 CVEs total

CVE-2026-411939.1 CRITICALFreeScout has Zip Slip path traversal in module installation that allows arbitrary file wr
CVE-2026-405699.0 CRITICALFreeScout's Mass Assignment in Mailbox Connection Settings Enables Silent Email Exfiltrati
CVE-2026-404978.1 HIGHFreeScout Vulnerable to CSS Injection via Stored Style Tag in Mailbox Signature (CSRF Toke
CVE-2026-405897.6 HIGHFreeScout has Customer Edit Cross-Mailbox Email Takeover
CVE-2026-411907.1 HIGHFreeScout has assigned-only visibility bypass via save_draft that allows hidden conversati
CVE-2026-411897.1 HIGHFreeScout has assigned-only visibility bypass that allows editing hidden customer-authored
CVE-2026-411917.1 HIGHFreeScout's signature only mailbox permission allows unauthorized mailbox chat setting cha
CVE-2026-405917.1 HIGHFreeScout: Improper Authorization in Phone Conversation Creation Enables Cross-Mailbox Hid
CVE-2026-411927.1 HIGHFreeScout's client-controlled attachment IDs allow deletion of existing conversation attac
CVE-2026-405656.1 MEDIUMFreeScout has Stored XSS / CSS Injection via linkify() — Unescaped URL in Anchor href
CVE-2026-405925.9 MEDIUMFreeScout's cross-user undo reply allows mailbox peers to recall another agent's outbound
CVE-2026-405675.8 MEDIUMFreeScout has HTML Injection in Outgoing Emails via Unsanitized Customer Name in Signature
CVE-2026-411945.4 MEDIUMFreeScout's Mailbox OAuth disconnect uses a state-changing GET and is CSRFable
CVE-2026-411834.3 MEDIUMFreeScout allows non-folder conversation queries to disclose assigned-only hidden conversa
CVE-2026-405904.3 MEDIUMFreeScout's Customer AJAX Create Modifies Hidden Existing Customer
CVE-2026-405664.1 MEDIUMFreeScout vulnerable to SSRF via IMAP/SMTP Connection Test Endpoints
CVE-2026-40570FreeScout's Missing Authorization in load_customer_info Allows Any Authenticated User to A
CVE-2026-40498FreeScout has Authentication Bypass and Information Disclosure in SystemController via /sy
CVE-2026-40496FreeScout has Predictable Attachment Token that Allows Unauthenticated Private File Downlo

IV. Related Vulnerabilities

V. Comments for CVE-2026-40568

No comments yet


Leave a comment