CVE-2026-27154: Discourse has XSS when editing a malicious post

Published Feb 26, 2026
·
Updated

Discourse is an open source discussion platform. Prior to versions 2025.12.2, 2026.1.1, and 2026.2.0, a user full name can be evaluated as raw HTML when the following settings are set: displaynameonposts => true; and prioritizeusernameinux => false. Editing a post of a malicious user would trigger an XSS. Versions 2025.12.2, 2026.1.1, and 2026.2.0 patch the issue. No known workarounds are available.

Affected Software

4 affected components
Discourse Discourse<2025.12.2, <2026.1.1, <2026.2.0
Discourse Discourse<2025.12.2
Discourse Discourse>=2026.1.0<2026.1.1
Discourse Discourse=2026.2.0

Event History

Feb 26, 2026
CVE Published
via MITRE·09:20 PM
Data Sourced
via MITRE·09:20 PM
DescriptionWeakness
Data Sourced
via NVD·10:20 PM
DescriptionSeverityWeaknessAffected Software
Oct 1, 58139
Event
via FIRST·08:55 PM

Frequently Asked Questions

1

What is the severity of CVE-2026-27154?

CVE-2026-27154 is classified as a moderate severity vulnerability due to its potential for XSS attacks.

2

How do I fix CVE-2026-27154?

To fix CVE-2026-27154, update Discourse to version 2025.12.2 or later, or 2026.1.1 or later, or 2026.2.0 or later.

3

What does CVE-2026-27154 expose users to?

CVE-2026-27154 exposes users to cross-site scripting (XSS) attacks when editing malicious posts.

4

Which versions of Discourse are affected by CVE-2026-27154?

CVE-2026-27154 affects Discourse versions prior to 2025.12.2, 2026.1.1, and 2026.2.0.

5

What settings trigger the vulnerability in CVE-2026-27154?

CVE-2026-27154 is triggered when 'display_name_on_posts' is set to true and 'prioritize_username_in_ux' is enabled.

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