CVEvulnerability
CVE-2023-37467
5.4 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2023-07-28
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 6.8 MEDIUM — CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
- CVSS 3.1 ([email protected])
- 5.4 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-323, CWE-79
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 configurations
• discourse discourse 1.1.0
• discourse discourse 1.2.0
• discourse discourse 1.3.0
• discourse discourse 1.4.0
• discourse discourse 1.5.0
• discourse discourse 1.6.0
• discourse discourse 1.7.0
• discourse discourse 1.8.0
• discourse discourse 1.9.0
• discourse discourse 2.0.0
• discourse discourse 2.1.0
• discourse discourse 2.2.0
• discourse discourse 2.3.0
• discourse discourse 2.4.0
• discourse discourse 2.5.0
• discourse discourse 2.6.0
• discourse discourse 2.7.0
• discourse discourse 2.8.0
• discourse discourse 2.9.0
• discourse discourse 3.0.0
• discourse discourse 3.1.0
Related
References
- https://github.com/discourse/discourse/commit/0976c8fad6970b6182e7837bf87de07709407f25 Patch
- https://github.com/discourse/discourse/security/advisories/GHSA-gr5h-hm62-jr3j Vendor Advisory
- https://github.com/discourse/discourse/commit/0976c8fad6970b6182e7837bf87de07709407f25 Patch
- https://github.com/discourse/discourse/security/advisories/GHSA-gr5h-hm62-jr3j Vendor Advisory