CVE-2026-62854: FreeScout: Stored XSS in mailbox signature via same-origin JS upload
FreeScout is a self-hosted help desk and shared mailbox. Prior to 1.8.225, a user who can edit a mailbox signature can combine a scriptable file uploaded through /uploads/upload with nested tag fragments that bypass Helper::stripDangerousTags(). The resulting external script is served from the same origin, so the script-src 'self' policy permits it when another user opens the affected mailbox reply editor or new-ticket page. The script executes with the victim's FreeScout privileges and can read visible data and perform same-origin actions. This issue is fixed in version 1.8.225.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
FreeScoutto a version that resolves this vulnerability.Fixed in 1.8.225
Event History
Frequently Asked Questions
Who is exposed to this issue?
FreeScout instances running versions before 1.8.225 are affected if a user can edit a mailbox signature. Other users are exposed when they open the affected mailbox reply editor or new-ticket page.
What does an attacker need to exploit it?
The attacker needs permission to edit a mailbox signature and must be able to upload a scriptable file through /uploads/upload. They can then use nested tag fragments to bypass the signature sanitization and load the uploaded script from the FreeScout origin.
Does the script execute with limited permissions?
No. When a victim opens the affected editor or new-ticket page, the script executes with that victim's FreeScout privileges. It can read data visible to the victim and perform same-origin actions as them.
What should be done to remediate the issue?
Upgrade FreeScout to version 1.8.225. Until an upgrade is possible, restrict mailbox-signature editing and the ability to upload scriptable files for users who do not need those capabilities.