CVE-2023-37467
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network with a low-privilege account. High risk of data exposure, data tampering.
- Exploit odds
- 0.4% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 0.4% in the next 30 days (EPSS).
- Severity: 6.8 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 0.4% · EPSS, next 30 days
- Weakness
- CWE-323
- Record status
- Modified
Affected
- Discourse 1.1.0
- Discourse 1.2.0
- Discourse 1.3.0
- Discourse 1.4.0
- Discourse 1.5.0
- Discourse 1.6.0
- Discourse 1.7.0
- Discourse 1.8.0
Attack profile CVSS 3.1 · 6.8
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Raw vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2023-37467.md and follow it. Check whether this project is affected by CVE-2023-37467. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/discourse/discourse/commit/0976c8fad6970b6182e7837bf87de07709407f25
- https://github.com/discourse/discourse/security/advisories/GHSA-gr5h-hm62-jr3j
- https://github.com/discourse/discourse/commit/0976c8fad6970b6182e7837bf87de07709407f25
- https://github.com/discourse/discourse/security/advisories/GHSA-gr5h-hm62-jr3j
References
- https://github.com/discourse/discourse/commit/0976c8fad6970b6182e7837bf87de07709407f25
- https://github.com/discourse/discourse/security/advisories/GHSA-gr5h-hm62-jr3j
- https://github.com/discourse/discourse/commit/0976c8fad6970b6182e7837bf87de07709407f25
- https://github.com/discourse/discourse/security/advisories/GHSA-gr5h-hm62-jr3j