CVE-2023-37467
JSON

6.8medium

Discourse CSP nonce reuse vulnerability for anonymous users

Severity
6.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.49% (higher than 35% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
BIT-DISCOURSE-2023-37467GHSA-gr5h-hm62-jr3j

Description

Discourse is an open source discussion platform. Prior to version 3.1.0.beta7 of the `beta` and `tests-passed` branches, a CSP (Content Security Policy) nonce reuse vulnerability was discovered could allow cross-site scripting (XSS) attacks to bypass CSP protection for anonymous (i.e. unauthenticated) users. There are no known XSS vectors at the moment, but should one be discovered, this vulnerability would allow the XSS attack to bypass CSP and execute successfully. This vulnerability isn't applicable to logged-in users. Version 3.1.0.beta7 contains a patch. The stable branch doesn't have this vulnerability. A workaround to prevent the vulnerability is to disable Google Tag Manager, i.e., unset the `gtm container id` setting.

Affected

Product or packageVersionsReported by
discourse discourse>= 3.1.0.beta1, < 3.1.0.beta7, from 3.1.0.beta1 before 3.1.0.beta7, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0CVE List, NVD
discourse (Bitnami)from 1.1.0-beta1 up to 1.1.0-beta1, from 1.1.0-beta2 up to 1.1.0-beta2, from 1.1.0-beta3 up to 1.1.0-beta3, from 1.1.0-beta4 up to 1.1.0-beta4, from 1.1.0-beta5 up to 1.1.0-beta5, from 1.1.0-beta6 up to 1.1.0-beta6, from 1.1.0-beta6b up to 1.1.0-beta6b, from 1.1.0-beta7 up to 1.1.0-beta7 and 52 moreBitnami Vulnerability Database

All scores

GitHub_M6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
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 Databasemedium rating

Classification

CWE-79CWE-323

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-37467 changed 2024-10-10CVE Terms of Use
NVDCVE-2023-37467 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-DISCOURSE-2023-37467 changed 2025-10-15Apache-2.0