CVE-2023-37467CWE-323

Discourse CSP nonce reuse vulnerability for anonymous users

Medium · published July 28, 2023

CVSS v3.1
6.8
EPSS
0%
Percentile
29.2
In the wild
Unconfirmed
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.

The record
Technical detail
CVSS v3.1
6.8 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00365 · 29.2th percentile
Weakness
CWE-323 · Reusing a Nonce, Key Pair in Encryption
Published
2023-07-28T14:42Z
EPSS history
Timeline
  • 28 JUL 14:42Z
    Discourse CSP nonce reuse vulnerability for anonymous users
    cvelistv5