XSS via category name
Package
Discourse
(Discourse)
Affected versions
stable <= 2.7.7; beta <= 2.8.0.beta4; tests-passed <= 2.8.0.beta4;
Patched versions
stable >= 2.7.8; beta >= 2.8.0.beta4; tests-passed >= 2.8.0.beta4;
Impact
Category names can be uses for XSS attacks. This vulnerability only affects sites which have modified or disabled Discourse's default Content Security Policy and have allowed for moderators to modify categories.
Patches
This issue is patched in the latest stable, beta and tests-passed versions of Discourse.
Workarounds
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.