Live threats

All CVEs / Discourse

CVE-2021-39161Discourse

Medium 5.4

Priority
32
CVSS 3.1
5.4
EPSS
0.4%
probability of exploitation in 30 days · percentile 27
Auth required
Yes
Published
Aug 26, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Discourse.

Affected products (CPE)

VendorProductVersions
discoursediscourse< 2.7.8
discoursediscourse2.8.0
discoursediscourse2.8.0
discoursediscourse2.8.0
discoursediscourse2.8.0

Official sources

References

Links published by the sources. Open them with care.