Headline
CVE-2023-36473: CSP Nonce Reuse Vulnerability
Discourse is an open source discussion platform. A CSP (Content Security Policy) nonce reuse vulnerability could allow XSS attacks to bypass CSP protection. There are no known XSS vectors at the moment, but should one be discovered, this vulnerability would allow the XSS attack to completely bypass CSP. The vulnerability is patched in the latest tests-passed, beta and stable branches.
Package
Discourse (Discourse)
Affected versions
stable <= 3.0.4; beta <= 3.1.0.beta5; tests-passed <= 3.1.0.beta5
Patched versions
stable >= 3.0.5; beta >= 3.1.0.beta6; tests-passed >= 3.1.0.beta6
Description
Impact
A CSP (Content Security Policy) nonce reuse vulnerability could allow XSS attacks to bypass CSP protection. There are no known XSS vectors at the moment, but should one be discovered, this vulnerability would allow the XSS attack to completely bypass CSP.
Patches
The vulnerability is patched in the latest tests-passed, beta and stable branches.
Workarounds
A workaround to prevent the vulnerability is to disable Google Tag Manager, i.e., unset the gtm container id setting.