8.8high
Discourse vulnerable to Cross-site Scripting in local oneboxes
- Severity
- 8.8high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.54% (higher than 46% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- BIT-DISCOURSE-2023-22468GHSA-8mr2-xf8r-wr8m
Description
Discourse is an open source platform for community discussion. Versions prior to 2.8.13 (stable), 3.0.0.beta16 (beta) and 3.0.0beta16 (tests-passed), are vulnerable to cross-site Scripting. A maliciously crafted URL can be included in a post to carry out cross-site scripting attacks on sites with disabled or overly permissive CSP (Content Security Policy). Discourse's default CSP prevents this vulnerability. This vulnerability is patched in versions 2.8.13 (stable), 3.0.0.beta16 (beta) and 3.0.0beta16 (tests-passed). As a workaround, enable and/or restore your site's CSP to the default one provided with Discourse.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| discourse discourse | stable < 2.8.14, beta < 3.0.0.beta16, tests-passed < 3.0.0.beta16, before 2.8.13, 2.9.0, 3.0.0 | CVE List, NVD |
| discourse (Bitnami) | before 2.8.13 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/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. Versions prior to 2.8.13 (stable), 3.0.0.beta16 (beta) and 3.0.0beta16 (tests-passed), are vulnerable to cross-site Scripting. A maliciously crafted URL can be included in a post to carry out cross-site scripting attacks on sites with disabled or overly permissive CSP (Content Security Policy). Discourse's default CSP prevents this vulnerability. This vulnerability is patched in versions 2.8.13 (stable), 3.0.0.beta16 (beta) and 3.0.0beta16 (tests-passed). As a workaround, enable and/or restore your site's CSP to the default one provided with Discourse.
NVD (es)
Discourse es una plataforma de código abierto para el debate comunitario. Las versiones anteriores a 2.8.13 (estable), 3.0.0.beta16 (beta) y 3.0.0beta16 (pruebas aprobadas) son vulnerables a cross-site scripting. Se puede incluir una URL creada con fines malintencionados en una publicación para llevar a cabo cross-site scripting en sitios con CSP (Política de seguridad de contenido) deshabilitada o demasiado permisiva. El CSP predeterminado de Discourse evita esta vulnerabilidad. Esta vulnerabilidad está parcheada en las versiones 2.8.13 (estable), 3.0.0.beta16 (beta) y 3.0.0beta16 (pruebas aprobadas). Como workaround, habilite y/o restaure el CSP de su sitio al predeterminado proporcionado con Discourse.
Bitnami Vulnerability Database
Discourse is an open source platform for community discussion. Versions prior to 2.8.13 (stable), 3.0.0.beta16 (beta) and 3.0.0 (tests-passed), are vulnerable to cross-site Scripting. A maliciously crafted URL can be included in a post to carry out cross-site scripting attacks on sites with disabled or overly permissive CSP (Content Security Policy). Discourse's default CSP prevents this vulnerability. This vulnerability is patched in versions 2.8.13 (stable), 3.0.0.beta16 (beta) and 3.0.0 (tests-passed). As a workaround, enable and/or restore your site's CSP to the default one provided with Discourse.
References
| https://github.com/discourse/discourse/security/advisories/GHSA-8mr2-xf8r-wr8m | advisory, third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-22468 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-22468 changed 2025-03-10 | CVE Terms of Use |
| NVD | CVE-2023-22468 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-DISCOURSE-2023-22468 changed 2026-09-10 | Apache-2.0 |