# CVE-2023-37467: Discourse CSP nonce reuse vulnerability for anonymous users

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 35% of CVEs (2026-11-29)
- Published: 2023-07-28T14:42:06.159Z
- Modified: 2026-06-17T06:08:16.570Z
- Also known as: BIT-DISCOURSE-2023-37467, GHSA-gr5h-hm62-jr3j
- Weaknesses: CWE-79, CWE-323
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- 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
- 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; from 1.1.0-beta8 up to 1.1.0-beta8; from 1.2.0-beta1 up to 1.2.0-beta1; from 1.2.0-beta2 up to 1.2.0-beta2; from 1.2.0-beta3 up to 1.2.0-beta3; and 48 more

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/discourse/discourse/security/advisories/GHSA-gr5h-hm62-jr3j> (vendor-advisory, web)
- <https://github.com/discourse/discourse/commit/0976c8fad6970b6182e7837bf87de07709407f25> (patch, web)

## Sources

- CVE List: [CVE-2023-37467](https://www.cve.org/CVERecord?id=CVE-2023-37467), CVE Terms of Use, modified 2024-10-10
- NVD: [CVE-2023-37467](https://nvd.nist.gov/vuln/detail/CVE-2023-37467), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-DISCOURSE-2023-37467](https://osv.dev/vulnerability/BIT-DISCOURSE-2023-37467), Apache-2.0, modified 2025-10-15

---

Page: https://cve.day/CVE-2023-37467 · Whole record: https://cve.day/CVE-2023-37467.json · Rebuilt by cve.day 2026-11-25T22:58:26.581Z
