CVE-2026-59830: Discourse: Stored XSS via unescaped actor name in post actions

Published Sep 21, 2026
·
Updated

Discourse is an open-source discussion platform. Prior to 2026.7.0, the post action component failed to escape user-controlled display names before interpolating them into an HTML string passed to trustHTML. A user who could choose a crafted display name could persist markup in post action descriptions. Viewing the affected user activity streams could execute attacker-controlled script in another user's browser. This issue is fixed in version 2026.7.0.

Affected Software

1 affected component
Discourse<2026.7.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Discourse to a version that resolves this vulnerability.

    Fixed in 2026.7.0

Event History

Sep 21, 2026
CVE Published
via MITRE·09:17 PM
Data Sourced
via MITRE·09:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue and who is exposed?

An attacker needs an account or other ability to set a crafted display name. Users who view affected activity streams containing post action descriptions associated with that name may have attacker-controlled script execute in their browsers.

2

Are default Discourse deployments affected?

The provided information does not identify any configuration prerequisite. The issue affects Discourse versions prior to 2026.7.0 when user-controlled display names are rendered in the affected post action component.

3

How can I determine whether my instance is vulnerable?

Check the deployed Discourse version. Instances running a version earlier than 2026.7.0 are affected; version 2026.7.0 contains the fix.

4

What should be done if immediate upgrading is not possible?

The provided information identifies crafted display names as the attacker-controlled input and affected user activity streams as the execution path. Restricting or reviewing display-name changes and limiting access to affected activity streams can reduce exposure until the instance can be upgraded to 2026.7.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203