CVE-2023-37467
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 package | Versions | Reported 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.0 | CVE 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 more | Bitnami Vulnerability Database |
All scores
| GitHub_M | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| 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 | medium rating |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-37467 changed 2024-10-10 | CVE Terms of Use |
| NVD | CVE-2023-37467 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-DISCOURSE-2023-37467 changed 2025-10-15 | Apache-2.0 |