{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:freescout:freescout:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.8.213"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "acf57a7a4b19544641523c6f7e51b1035c03c9b6"
            },
            {
              "fixed": "265379b3ae343f06846adc0aa8510643d1eac2df"
            }
          ],
          "repo": "https://github.com/freescout-help-desk/freescout",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-49pm-xwqj-vwjp"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40565.json"
  },
  "details": "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.",
  "id": "CVE-2026-40565",
  "modified": "2026-07-15T01:48:58.850454016Z",
  "published": "2026-04-21T15:52:39.118Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/freescout-help-desk/freescout/releases/tag/1.8.213"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40565.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/freescout-help-desk/freescout/security/advisories/GHSA-49pm-xwqj-vwjp"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40565"
    },
    {
      "type": "FIX",
      "url": "https://github.com/freescout-help-desk/freescout/commit/265379b3ae343f06846adc0aa8510643d1eac2df"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "FreeScout has Stored XSS / CSS Injection via linkify() — Unescaped URL in Anchor href"
}