{"id":"CVE-2023-25172","published":"2023-03-17T16:07:27Z","modified":"2025-02-25T14:54:25Z","title":"Discourse vulnerable to Cross-site Scripting - user name displayed on post","vendor":"discourse","product":"discourse","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00527,"percentile":0.45522,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-7pm2-prxw-wrvp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/discourse/discourse/pull/20008","tags":["x_refsource_MISC"]},{"url":"https://github.com/discourse/discourse/pull/20009","tags":["x_refsource_MISC"]},{"url":"https://github.com/discourse/discourse/commit/1a5a6f66cb821ed29a737311d6fdc2eba5adc915","tags":["x_refsource_MISC"]},{"url":"https://github.com/discourse/discourse/commit/c186a46910431020e8efc425dec2133e7a99fa9a","tags":["x_refsource_MISC"]}],"priority":{"score":12.2,"factors":[{"name":"EPSS percentile","points":9.1},{"name":"CVSS severity","points":3.08}]},"vendorSlug":"discourse","affectedVersions":[{"vendor":"discourse","product":"discourse","versions":["stable < 3.0.1","beta < 3.1.0.beta2","tests-passed < 3.1.0.beta2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-25T14:28:58.686803Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-29137","exploited":false,"provenance":"source"}}