{"id":"BIT-discourse-2023-25172","summary":"Discourse vulnerable to Cross-site Scripting - user name displayed on post","details":"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.","aliases":["CVE-2023-25172","GHSA-7pm2-prxw-wrvp"],"modified":"2026-09-08T08:46:06.376799761Z","published":"2024-03-06T10:59:15.105Z","database_specific":{"severity":"Medium","cpes":["cpe:2.3:a:discourse:discourse:*:*:*:*:stable:*:*:*","cpe:2.3:a:discourse:discourse:*:*:*:*:*:*:*:*","cpe:2.3:a:discourse:discourse:*:*:*:*:beta:*:*:*","cpe:2.3:a:discourse:discourse:3.1.0:beta1:*:*:beta:*:*:*"]},"references":[{"type":"FIX","url":"https://github.com/discourse/discourse/commit/1a5a6f66cb821ed29a737311d6fdc2eba5adc915"},{"type":"FIX","url":"https://github.com/discourse/discourse/commit/c186a46910431020e8efc425dec2133e7a99fa9a"},{"type":"FIX","url":"https://github.com/discourse/discourse/pull/20008"},{"type":"FIX","url":"https://github.com/discourse/discourse/pull/20009"},{"type":"ADVISORY","url":"https://github.com/discourse/discourse/security/advisories/GHSA-7pm2-prxw-wrvp"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-25172"}],"affected":[{"package":{"name":"discourse","ecosystem":"Bitnami","purl":"pkg:bitnami/discourse"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.1.0"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/discourse/BIT-discourse-2023-25172.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}],"schema_version":"1.9.0"}