CVE-2023-22468
JSON

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 packageVersionsReported by
discourse discoursestable < 2.8.14, beta < 3.0.0.beta16, tests-passed < 3.0.0.beta16, before 2.8.13, 2.9.0, 3.0.0CVE List, NVD
discourse (Bitnami)before 2.8.13Bitnami Vulnerability Database

All scores

GitHub_M8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-79

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

Sources

SourceRecordLicence
CVE ListCVE-2023-22468 changed 2025-03-10CVE Terms of Use
NVDCVE-2023-22468 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-DISCOURSE-2023-22468 changed 2026-09-10Apache-2.0