CVE-2021-41095 XSS via blocked watched word in error message
- Published
- Updated
- Exploit status
- No public exploit known
Description
Discourse is an open source discussion platform. There is a cross-site scripting (XSS) vulnerability in versions 2.7.7 and earlier of the stable branch, versions 2.8.0.beta6 and earlier of the beta branch, and versions 2.8.0.beta6 and earlier of the tests-passed branch. 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. This issue is patched in the latest stable, beta and tests-passed versions of Discourse. As a workaround, avoid modifying or disabling Discourse’s default Content Security Policy, and blocking watched words containing HTML tags.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| discourse | <= 2.7.7; = 2.8.0-beta1; = 2.8.0-beta2; = 2.8.0-beta3 +5 more | after 2.7.7 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| discourse | <= 2.7.7 | No fix listed |
| discourse | = 2.8.0-beta1 | No fix listed |
| discourse | = 2.8.0-beta2 | No fix listed |
| discourse | = 2.8.0-beta3 | No fix listed |
| discourse | = 2.8.0-beta4 | No fix listed |
| discourse | = 2.8.0-beta5 | No fix listed |
| discourse | = 2.8.0-beta6 | No fix listed |
| discourse | = <= 2.7.7 | No fix listed |
| discourse | = >= 2.8.0.beta1, <= 2.8.0.beta6 | No fix listed |
References
- github.com patch third-party-advisory
- github.com third-party-advisory