CVE-2021-39161
MEDIUMDiscourse < 2.7.8 - Stored Cross-Site Scripting via Category Name
Title source: llmDescription
Discourse is an open source platform for community discussion. In affected versions category names can be used for Cross-site scripting(XSS) attacks. This is mitigated by Discourse's default Content Security Policy and this vulnerability only affects sites which have modified or disabled or changed Discourse's default Content Security Policy have allowed for moderators to modify categories. This issue is patched in the latest stable, beta and tests-passed versions of Discourse. Users are advised to ensure that the Content Security Policy is enabled, and has not been modified in a way which would make it more vulnerable to XSS attacks.
References (1)
Core 1
Core References
Third Party Advisory x_refsource_confirm
https://github.com/discourse/discourse/security/advisories/GHSA-xhmc-9jwm-wqph
Scores
CVSS v3
4.4
EPSS
0.0026
EPSS Percentile
49.0%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
Details
CWE
CWE-79
Status
published
Products (2)
discourse/discourse
2.8.0 beta1 (4 CPE variants)
discourse/discourse
< 2.7.8
Published
Aug 26, 2021
Tracked Since
Feb 18, 2026