# CVE-2023-25172: Discourse vulnerable to Cross-site Scripting - user name displayed on post

- Severity: Medium 4.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2023-03-17T16:07:27.668Z
- Modified: 2026-09-08T08:46:06.376Z
- Also known as: BIT-DISCOURSE-2023-25172, GHSA-7pm2-prxw-wrvp
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- 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
- discourse (Bitnami): before 3.1.0

## Every score

- GitHub_M: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/discourse/discourse/security/advisories/GHSA-7pm2-prxw-wrvp> (advisory, vendor-advisory)
- <https://github.com/discourse/discourse/pull/20008> (fix, patch)
- <https://github.com/discourse/discourse/pull/20009> (fix, patch)
- <https://github.com/discourse/discourse/commit/1a5a6f66cb821ed29a737311d6fdc2eba5adc915> (fix, patch)
- <https://github.com/discourse/discourse/commit/c186a46910431020e8efc425dec2133e7a99fa9a> (fix, patch)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-25172> (web)

## Sources

- CVE List: [CVE-2023-25172](https://www.cve.org/CVERecord?id=CVE-2023-25172), CVE Terms of Use, modified 2025-02-25
- NVD: [CVE-2023-25172](https://nvd.nist.gov/vuln/detail/CVE-2023-25172), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-DISCOURSE-2023-25172](https://osv.dev/vulnerability/BIT-DISCOURSE-2023-25172), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-25172 · Whole record: https://cve.day/CVE-2023-25172.json · Rebuilt by cve.day 2026-11-25T22:58:22.512Z
