CVE-2026-27154

Discourse has XSS when editing a malicious post

State
Published
Severity
1.3 Low
Published
Feb 26, 2026
Updated
Mar 2, 2026
Reserved
Feb 18, 2026

Read the record on cve.org

Description

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: `display_name_on_posts` => true; and `prioritize_username_in_ux` => 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.

Scores

CVSSScoreVectorSource
4.01.3 LowCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:UGitHub_M

Weaknesses

  • CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Affected Products

ProductVersions
discoursediscourse
  • < 2025.12.2Affected
  • >= 2026.1.0-latest, < 2026.1.1Affected
  • >= 2026.2.0-latest, < 2026.2.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.