CVE-2023-37467

MEDIUM

Discourse beta and tests-passed < 3.1.0.beta7 - Unauthenticated Cross-Site Scripting via CSP Nonce Reuse

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2023-37467. PoCs published by ibrahmsql.

AI-analyzed exploit summary This Ruby script demonstrates CVE-2023-37467, a CSP nonce reuse vulnerability in Discourse. It tests for nonce discovery, reuse, and XSS bypass techniques by injecting scripts with discovered nonces.

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.

Exploits (1)

nomisec WORKING POC 3 stars
by ibrahmsql · poc
https://github.com/ibrahmsql/CVE-2023-37467

This Ruby script demonstrates CVE-2023-37467, a CSP nonce reuse vulnerability in Discourse. It tests for nonce discovery, reuse, and XSS bypass techniques by injecting scripts with discovered nonces.

Classification
Working Poc 95%
Attack Type
Xss
Complexity
Moderate
Reliability
Reliable
Target: Discourse < 3.1.1 stable, < 3.2.0.beta2
No auth needed
Prerequisites: Access to a vulnerable Discourse instance · Ability to send HTTP requests to the target
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Scores

CVSS v3 6.8
EPSS 0.0032
EPSS Percentile 23.1%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-323 CWE-79
Status published
Products (5)
discourse/discourse 1.1.0 beta1 (9 CPE variants)
discourse/discourse 1.2.0 beta1 (9 CPE variants)
discourse/discourse 1.3.0 beta1 (11 CPE variants)
discourse/discourse 1.4.0 beta1 (12 CPE variants)
discourse/discourse 1.5.0 beta1 (9 CPE variants)
Published Jul 28, 2023
Tracked Since Feb 18, 2026