CVE-2021-41095
JSON

4.2medium

XSS via blocked watched word in error message

Severity
4.2medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.58% (higher than 49% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
BIT-DISCOURSE-2021-41095GHSA-qvqx-2h7w-m479

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.

Affected

Product or packageVersionsReported by
discourse discourse<= 2.7.7, >= 2.8.0.beta1, <= 2.8.0.beta6, up to 2.7.7, 2.8.0CVE List, NVD
discourse (Bitnami)up to 2.7.7Bitnami Vulnerability Database

All scores

GitHub_M4.2medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:P/A:N
Bitnami Vulnerability Databasemedium rating

Classification

What each source says

CVE List

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.

NVD (es)

Discourse es una plataforma de debate de código abierto. Se presenta una vulnerabilidad de tipo cross-site scripting (XSS) en versiones 2.7.7 y anteriores de la rama "stable", en las versiones 2.8.0.beta6 y anteriores de la rama "beta", y en las versiones 2.8.0.beta6 y anteriores de la rama "tests-passed". La representación de algunos mensajes de error que contienen entradas del usuario puede ser susceptible de ataques de tipo XSS. Esta vulnerabilidad sólo afecta a los sitios que han bloqueado las palabras vigiladas que contienen etiquetas HTML, han modificado o han deshabilitado la política de seguridad de contenidos predeterminada de Discourse. Este problema está parcheado en las últimas versiones "stable", "beta" y "tests-passed" de Discourse. Como solución, evite la modificar o desactivar la política de seguridad de contenidos predeterminada de Discourse y bloquear las palabras vigiladas que contengan etiquetas HTML

References

Sources

SourceRecordLicence
CVE ListCVE-2021-41095 changed 2024-08-04CVE Terms of Use
NVDCVE-2021-41095 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-DISCOURSE-2021-41095 changed 2026-09-08Apache-2.0