Original description
Discourse is an open-source discussion platform. Prior to version 3.0.1 of the `stable` branch and version 3.1.0.beta2 of the `beta` and `tests-passed` branches, a maliciously crafted URL can be included in a user's full name field to to carry out cross-site scripting attacks on sites with a disabled or overly permissive CSP (Content Security Policy). Discourse's default CSP prevents this vulnerability. The vulnerability is patched in version 3.0.1 of the `stable` branch and version 3.1.0.beta2 of the `beta` and `tests-passed` branches. As a workaround, enable and/or restore your site's CSP to the default one provided with Discourse.
Affected software
- Discourse *= 3.1.0< 3.1.0< 3.0.1 Fixed in: 3.1.0, 3.0.1 repository or package match
Details
- Published
- 2023-03-17
- Last modified
- 2026-06-17
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N- CWE
- CWE-79
- EPSS (30-day exploit probability)
- 0.53% (percentile 45)
References
- cve.org/CVE-2023-25172
- nvd.nist.gov/vuln/detail/CVE-2023-25172
- github.com/discourse/discourse/commit/1a5a6f66cb821ed29a737311d6fdc2eba5adc915
- github.com/discourse/discourse/commit/c186a46910431020e8efc425dec2133e7a99fa9a
- github.com/discourse/discourse/pull/20008
- github.com/discourse/discourse/pull/20009
- github.com/discourse/discourse/security/advisories/GHSA-7pm2-prxw-wrvp
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.