Cross-site scripting in Discourse - CVE-2026-91119

 

Cross-site scripting in Discourse - CVE-2026-91119

Published: October 28, 2026


Vulnerability identifier: #VU158251
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2026-91119
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to inject arbitrary HTML into Discourse content displayed to other users.

The vulnerability exists due to missing URL encoding in the topic small-action and nested-activity-log components when interpolating free-form action_code_who values into trusted mention-link href attributes. A remote user can supply a quote-bearing display name such as "><img src=x> to terminate an attribute and inject HTML elements into the rendered content.


Affected software

Discourse

How to mitigate CVE-2026-91119

Install security update from vendor's website.

Discourse - addressed in versions 2026.1.8, 2026.6.3, 2026.7.2, 2026.8.0

External References

Related Security Bulletins