/

CVE-2026-85742

Severity:

HIGH RISK

(7.5)

Stored Cross-Site Scripting (CWE-79) in FreeScout job UI

CVE-2026-85742

Deferred

Vulnerability type

Category:

Stored Cross-Site Scripting

CWE:

CWE-79

Impact:

Same-origin JavaScript execution in an administrator's browser

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

FreeScout can store attacker-controlled HTML from a failed-login email value in a queued alert job, where incomplete sanitization leaves executable event-handler attributes. If the alert job fails and an administrator opens its details endpoint as a top-level page, the JavaScript may run in the administrator's session and perform same-origin actions.

Affected context

The issue affects FreeScout deployments where Logs Monitoring for users is enabled and a failed-login email value is copied into monitored activity and then into a queued SendAlert job. Risk also depends on alert delivery failing so that the serialized job payload is stored in failed_jobs, and an administrator opening the job-details endpoint as a top-level page. The normal modal path was not affected in the tested configuration.

Exploit preconditions

  • Attack surface: The administrator job-details endpoint at /system/ajax-html/job_details/{id}
  • Required access: No authentication is required to supply the failed-login email value; administrator interaction with the resulting job details is required for the browser-side impact
  • Trigger point: An administrator opens the failed job details as a top-level page
  • Why exploitation is possible: The attacker-controlled HTML passes through a blacklist sanitizer that leaves executable event-handler attributes, and the raw fragment is served without the normal layout policy
  • Additional conditions: Logs Monitoring for users must be enabled, alert delivery must fail, and the failed job must be stored

Why this happens

The application carries attacker-controlled HTML through monitored activity into a serialized queued job, then renders the stored content in an HTML fragment after incomplete blacklist-based sanitization. Because executable event-handler attributes remain and the top-level response lacks the normal layout policy, the browser may execute attacker-controlled script in the administrator's origin. This is CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').

Potential impact

  • An attacker could cause script to execute in an administrator's browser when the required conditions are met.
  • The script may perform same-origin actions available to that administrator.
  • The incident could expose or alter help-desk data accessible to the administrator.
  • The impact may be limited when the failed-job or administrator-interaction conditions are absent.

General mitigation guidance

Defensive patterns include avoiding HTML rendering of untrusted job data and using context-aware output encoding or a narrowly defined, allowlist-based HTML sanitizer when markup is necessary. Treat email values, activity records, and serialized queue payloads as untrusted across the full processing path, and apply a restrictive content security policy consistently to fragment and top-level responses. Limit access to failed-job details and administrative actions according to least privilege, and minimize sensitive data available to those actions.

How teams detect issues like this

Review data flows from failed-login email values through monitored activity, alert job serialization, failed_jobs storage, and job-details rendering. Static analysis and code review can flag blacklist sanitizers, unescaped dynamic HTML, and event-handler attributes in rendered output. Test both modal and top-level response contexts, and use policy checks to require context-aware encoding, approved sanitizers, and consistent browser security headers. Automated security review tools may help identify these patterns.

Sources

SourceLink
github.comgithub.com/freescout-help-desk/freescout/commit/3f508d41a01bd754ef78a7fab38743f141bd1714
github.comgithub.com/freescout-help-desk/freescout/releases/tag/1.8.230
github.comgithub.com/freescout-help-desk/freescout/security/advisories/GHSA-2g42-f97q-973x

Frequently asked

questions

Logs Monitoring for users must be enabled, the alert delivery must fail and be recorded, and an administrator must open the affected job details as a top-level page. The tested normal modal path was not affected.

The described attacker can supply the failed-login email value without prior authentication. Administrator interaction with the resulting job details is still needed for the browser-side impact.

Avoid rendering untrusted job data as HTML. Where markup is required, use context-aware output encoding or a restrictive allowlist-based sanitizer, and apply browser security policies consistently.

Treat data as untrusted across logging and queue boundaries, review complete rendering paths, enforce secure output-handling policies in code review and CI, and restrict administrative access using least privilege.

Find out what's already
exploitable in your codebase.