CVE-2026-40497 | freescout-help-desk freescout up to 1.8.212 Mailbox Signature Field /mailbox/settings/ stripDangerousTags cross site scripting (GHSA-fh99-wr77-pxq3)
VulDBArchived Apr 21, 2026✓ Full text saved
A vulnerability was found in freescout-help-desk freescout up to 1.8.212 . It has been classified as problematic . This vulnerability affects the function Helper::stripDangerousTags of the file /mailbox/settings/ of the component Mailbox Signature Field Handler . This manipulation causes cross site scripting. This vulnerability is registered as CVE-2026-40497 . Remote exploitation of the attack is possible. No exploit is available. Upgrading the affected component is recommended.
Full text archived locally
✦ AI Summary· Claude Sonnet
VDB-358406 · CVE-2026-40497 · GHSA-FH99-WR77-PXQ3
FREESCOUT-HELP-DESK FREESCOUT UP TO 1.8.212 MAILBOX SIGNATURE FIELD /MAILBOX/SETTINGS/ STRIPDANGEROUSTAGS CROSS SITE SCRIPTING
HISTORYDIFFRELATEJSONXMLCTI
CVSS Meta Temp Score Current Exploit Price (≈) CTI Interest Score
5.2 $0-$5k 3.85+
Summaryinfo
A vulnerability was found in freescout-help-desk freescout up to 1.8.212. It has been declared as problematic. This issue affects the function Helper::stripDangerousTags of the file /mailbox/settings/ of the component Mailbox Signature Field Handler. Such manipulation leads to cross site scripting. This vulnerability is documented as CVE-2026-40497. The attack can be executed remotely. There is not any exploit available. It is recommended to upgrade the affected component.
Detailsinfo
A vulnerability was found in freescout-help-desk freescout up to 1.8.212. It has been rated as problematic. Affected by this issue is the function Helper::stripDangerousTags of the file /mailbox/settings/ of the component Mailbox Signature Field Handler. The manipulation with an unknown input leads to a cross site scripting vulnerability. Using CWE to declare the problem leads to CWE-79. The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. Impacted is integrity. CVE summarizes:
FreeScout is a free self-hosted help desk and shared mailbox. Prior to version 1.8.213, FreeScout's `Helper::stripDangerousTags()` removes ``, ``, ``, `` but does NOT strip `` 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 `` tags, leaving CSS injection possible. Version 1.8.213 contains an updated fix.
The advisory is available at github.com. This vulnerability is handled as CVE-2026-40497 since 04/13/2026. The exploitation is known to be easy. The attack may be launched remotely. The exploitation needs additional levels of successful authentication. Successful exploitation requires user interaction by the victim. Technical details are known, but there is no available exploit. This vulnerability is assigned to T1059.007 by the MITRE ATT&CK project.
Upgrading to version 1.8.213 eliminates this vulnerability. The upgrade is hosted for download at github.com. Applying the patch 5aa8d633216f65995e80a7d4a921b784acc94df4 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
Productinfo
Vendor
freescout-help-desk
Name
freescout
Version
1.8.212
License
open-source
Website
Product: https://github.com/freescout-help-desk/freescout/
CPE 2.3info
🔒
CPE 2.2info
🔒
CVSSv4info
VulDB Vector: 🔒
VulDB Reliability: 🔍
CVSSv3info
VulDB Meta Base Score: 5.2
VulDB Meta Temp Score: 5.2
VulDB Base Score: 2.4
VulDB Temp Score: 2.3
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA Base Score: 8.1
CNA Vector (GitHub_M): 🔒
CVSSv2info
Vector Complexity Authentication Confidentiality Integrity Availability
Unlock Unlock Unlock Unlock Unlock Unlock
Unlock Unlock Unlock Unlock Unlock Unlock
Unlock Unlock Unlock Unlock Unlock Unlock
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploitinginfo
Class: Cross site scripting
CWE: CWE-79 / CWE-94 / CWE-74
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Status: Not defined
Price Prediction: 🔍
Current Price Estimation: 🔒
0-Day Unlock Unlock Unlock Unlock
Today Unlock Unlock Unlock Unlock
Threat Intelligenceinfo
Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍
Countermeasuresinfo
Recommended: Upgrade
Status: 🔍
0-Day Time: 🔒
Upgrade: freescout 1.8.213
Patch: 5aa8d633216f65995e80a7d4a921b784acc94df4
Timelineinfo
04/13/2026 CVE reserved
04/21/2026 +8 days Advisory disclosed
04/21/2026 +0 days VulDB entry created
04/21/2026 +0 days VulDB entry last update
Sourcesinfo
Product: github.com
Advisory: GHSA-fh99-wr77-pxq3
Status: Confirmed
CVE: CVE-2026-40497 (🔒)
GCVE (CVE): GCVE-0-2026-40497
GCVE (VulDB): GCVE-100-358406
Entryinfo
Created: 04/21/2026 07:18
Changes: 04/21/2026 07:18 (70)
Complete: 🔍
Cache ID: 99:F03:101
Discussion
No comments yet. Languages: en.
Please log in to comment.
◂ PreviousOverviewNext ▸