# CVE-2021-41095: XSS via blocked watched word in error message

- Severity: Medium 4.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-01)
- Published: 2021-09-27T19:30:11.000Z
- Modified: 2026-09-08T08:46:05.201Z
- Also known as: BIT-DISCOURSE-2021-41095, GHSA-qvqx-2h7w-m479
- Weaknesses: CWE-79
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- discourse discourse: <= 2.7.7; >= 2.8.0.beta1, <= 2.8.0.beta6; up to 2.7.7; 2.8.0
- discourse (Bitnami): up to 2.7.7

## Every score

- GitHub_M: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/discourse/discourse/security/advisories/GHSA-qvqx-2h7w-m479> (advisory, third-party-advisory)
- <https://github.com/discourse/discourse/pull/14434/commits/40b776b9d39c41d9273d01eecf8fe03aa39fcb59> (advisory, patch, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41095> (web)

## Sources

- CVE List: [CVE-2021-41095](https://www.cve.org/CVERecord?id=CVE-2021-41095), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-41095](https://nvd.nist.gov/vuln/detail/CVE-2021-41095), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-DISCOURSE-2021-41095](https://osv.dev/vulnerability/BIT-DISCOURSE-2021-41095), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-41095 · Whole record: https://cve.day/CVE-2021-41095.json · Rebuilt by cve.day 2026-11-25T22:58:04.187Z
