CVE-2023-25172
JSON

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 packageVersionsReported by
discourse discoursestable < 3.0.1, beta < 3.1.0.beta2, tests-passed < 3.1.0.beta2, before 3.0.1, before 3.1.0, 3.1.0CVE List, NVD
discourse (Bitnami)before 3.1.0Bitnami Vulnerability Database

All scores

GitHub_M4.4medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-25172 changed 2025-02-25CVE Terms of Use
NVDCVE-2023-25172 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-DISCOURSE-2023-25172 changed 2026-09-08Apache-2.0