CVE-2023-25172
4.4medium
Discourse vulnerable to Cross-site Scripting - user name displayed on post
- Severity
- 4.4medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.53% (higher than 46% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- BIT-DISCOURSE-2023-25172GHSA-7pm2-prxw-wrvp
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
| Product or package | Versions | Reported by |
|---|---|---|
| discourse discourse | stable < 3.0.1, beta < 3.1.0.beta2, tests-passed < 3.1.0.beta2, before 3.0.1, before 3.1.0, 3.1.0 | CVE List, NVD |
| discourse (Bitnami) | before 3.1.0 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 4.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-25172 changed 2025-02-25 | CVE Terms of Use |
| NVD | CVE-2023-25172 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-DISCOURSE-2023-25172 changed 2026-09-08 | Apache-2.0 |