XSS via blocked watched word in error message
Package
discourse
(Discourse)
Affected versions
stable <= 2.7.7; beta <= 2.8.0.beta6; tests-passed <= 2.8.0.beta6;
Patched versions
stable >= 2.7.8; beta >= 2.8.0.beta6; tests-passed >= 2.8.0.beta6;
Impact
Rendering of some error messages that contain user input can be susceptible to XSS attacks. This vulnerability only affects sites which have blocked watched words that contain HTML tags, modified or disabled Discourse's default Content Security Policy.
Patches
This issue is patched in the latest
stable,betaandtests-passedversions of Discourse.Workarounds
This vulnerability only affects sites which have modified or disabled Discourse’s default Content Security Policy, and have blocked watched words containing HTML tags.