8.0high
Cross-site Scripting via email preview when CSP disabled in Discourse
- Severity
- 8.0high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.48% (higher than 43% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- BIT-DISCOURSE-2023-43659GHSA-g4qg-5q2h-m8ph
Description
Discourse is an open source platform for community discussion. Improper escaping of user input allowed for Cross-site Scripting attacks via the digest email preview UI. This issue only affects sites with CSP disabled. This issue has been patched in the 3.1.1 stable release as well as the 3.2.0.beta1 release. Users are advised to upgrade. Users unable to upgrade should ensure CSP is enabled on the forum.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| discourse discourse | stable <= 3.1.1, beta <= 3.2.0.beta1, from stable up to 3.1.1, from beta up to 3.2.0.beta1, up to 3.1.1, 3.2.0 | CVE List, NVD |
| discourse (Bitnami) | up to 3.1.1 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 8.0high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
Discourse is an open source platform for community discussion. Improper escaping of user input allowed for Cross-site Scripting attacks via the digest email preview UI. This issue only affects sites with CSP disabled. This issue has been patched in the 3.1.1 stable release as well as the 3.2.0.beta1 release. Users are advised to upgrade. Users unable to upgrade should ensure CSP is enabled on the forum.
NVD (es)
Discourse es una plataforma de código abierto para el debate comunitario. El escape inadecuado de la entrada del usuario permitió ataques de Cross-Site Scripting a través de la interfaz de usuario de vista previa del resumen del correo electrónico. Este problema sólo afecta a sitios con CSP deshabilitado. Este problema se solucionó en la versión 3.1.1 stable y en la versión 3.2.0.beta1. Se recomienda a los usuarios que actualicen. Los usuarios que no puedan actualizar deben asegurarse de que CSP esté habilitado en el foro.
References
| https://github.com/discourse/discourse/security/advisories/GHSA-g4qg-5q2h-m8ph | advisory, vendor-advisory | |
| https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP | advisory, third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-43659 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-43659 changed 2024-09-16 | CVE Terms of Use |
| NVD | CVE-2023-43659 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-DISCOURSE-2023-43659 changed 2026-09-10 | Apache-2.0 |