# CVE-2026-40565: FreeScout has Stored XSS / CSS Injection via linkify() — Unescaped URL in Anchor href

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-21T15:52:39.118Z
- Modified: 2026-11-11T23:10:00.263Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

FreeScout is a free self-hosted help desk and shared mailbox. Prior to version 1.8.213, FreeScout's linkify() function in app/Misc/Helper.php converts plain-text URLs in email bodies into HTML anchor tags without escaping double-quote characters (") in the URL. HTMLPurifier (called first via getCleanBody()) preserves literal " characters in text nodes. linkify() then wraps URLs including those " chars inside an unescaped href="..." attribute, breaking out of the href and injecting arbitrary HTML attributes. Version 1.8.213 fixes the issue.

(As written by CVE List.)

## Affected

- freescout-help-desk freescout: < 1.8.213
- freescout freescout: before 1.8.213

## References

- <https://github.com/freescout-help-desk/freescout/security/advisories/GHSA-49pm-xwqj-vwjp> (exploit, vendor-advisory)
- <https://github.com/freescout-help-desk/freescout/commit/265379b3ae343f06846adc0aa8510643d1eac2df> (patch)
- <https://github.com/freescout-help-desk/freescout/releases/tag/1.8.213> (release-notes)

## Sources

- CVE List: [CVE-2026-40565](https://www.cve.org/CVERecord?id=CVE-2026-40565), CVE Terms of Use, modified 2026-04-21
- NVD: [CVE-2026-40565](https://nvd.nist.gov/vuln/detail/CVE-2026-40565), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-40565 · Whole record: https://cve.day/CVE-2026-40565.json · Rebuilt by cve.day 2026-11-25T22:59:19.110Z
