Skip to content
OpenAdvisories
Medium · 4.4 CVE-2021-39161 EUVD-2021-25570

Cross-site scripting via category name in Discourse

Published Aug 26, 2021 · Updated Aug 4, 2024 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
discourse discourse < 2.7.8, >= 2.8.0.beta1, < 2.8.0.beta4 —

References