XSS in Discourse

CVE-2023-29196

Discourse is an open source platform for community discussion. This vulnerability is not exploitable on the default install of Discourse. A custom feature must be enabled for it to work at all, and the attacker’s payload must pass the CSP to be executed. However, if an attacker succeeds in embedding Javascript that does pass the CSP, it could result in session hijacking for any users that view the attacker’s post. The vulnerability is patched in the latest tests-passed, beta and stable branches. Users are advised to upgrade. Users unable to upgrade should enable and/or restore your site's CSP to the default one provided with Discourse. Remove any embed-able hosts configured.

Vulnerability class: XSS (Cross-Site Scripting)

EPSS: 0.003 (23.7th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 4.2 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N.

Affected products

  • Discourse — versions 3.1.0, beta: < 3.1.0.beta4, stable: < 3.0.3

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2023-29196?
CVE-2023-29196 is a medium-severity vulnerability in Discourse, classified under Cross-site Scripting. CVSS score: 4.2/10. Published 2023-04-18.
How severe is CVE-2023-29196?
Medium severity. CVSS v3 base score is 4.2 out of 10.