CVE-2023-37467
published medium CVSS 3.1 · 6.8Discourse CSP nonce reuse vulnerability for anonymous users
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| discourse | discourse | >= 3.1.0.beta1, < 3.1.0.beta7 (affected) | GitHub_M · cna |
| discourse | discourse | 3.1.0.beta1 to < 3.1.0.beta7 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-323 CWE-323: Reusing a Nonce, Key Pair in Encryption
References
2Provider assertions
3GitHub_M · cna
Discourse CSP nonce reuse vulnerability for anonymous users
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- cce98cae4fbdf97ad1c44c160ab36fe6cc39ebf5299a19a2edeb715d582d853c
- Ingested
- 23 Sep 2026, 08:10:12 UTC
- Source record
- Official CVE record