{"id":"CVE-2023-25172","aliases":["CVE-2023-25172","BIT-DISCOURSE-2023-25172","GHSA-7pm2-prxw-wrvp"],"related":[],"kind":"vulnerability","state":"published","title":"Discourse vulnerable to Cross-site Scripting - user name displayed on post","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2023-03-17T16:07:27.668Z","modified":"2026-09-08T08:46:06.376Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","score":4.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","score":4.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"stable < 3.0.1","status":"affected"},{"version":"beta < 3.1.0.beta2","status":"affected"},{"version":"tests-passed < 3.1.0.beta2","status":"affected"}],"vendor":"discourse","product":"discourse","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"3.0.1"},{"status":"affected","fixed":"3.1.0"},{"status":"affected","version":"3.1.0"}],"vendor":"discourse","product":"discourse","cpe":"cpe:2.3:a:discourse:discourse:*:*:*:*:stable:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.1.0"}],"ecosystem":"Bitnami","package":"discourse","purl":"pkg:bitnami/discourse","source":"bitnami"}],"references":[{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-7pm2-prxw-wrvp","tags":["advisory","vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/discourse/discourse/pull/20008","tags":["fix","patch","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/discourse/discourse/pull/20009","tags":["fix","patch","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/discourse/discourse/commit/1a5a6f66cb821ed29a737311d6fdc2eba5adc915","tags":["fix","patch","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/discourse/discourse/commit/c186a46910431020e8efc425dec2133e7a99fa9a","tags":["fix","patch","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-25172","tags":["web"],"sources":["bitnami"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-02-25T14:28:58.686Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-25172","url":"https://www.cve.org/CVERecord?id=CVE-2023-25172","licence":"CVE Terms of Use","modified":"2025-02-25T14:54:25.650Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-25172","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-25172","licence":"Public domain","modified":"2026-06-17T05:40:50.257Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DISCOURSE-2023-25172","url":"https://osv.dev/vulnerability/BIT-DISCOURSE-2023-25172","licence":"Apache-2.0","modified":"2026-09-08T08:46:06.376Z"}],"updatedAt":"2026-11-25T22:58:22.512Z","epss":{"score":0.00527,"percentile":0.46069,"date":"2026-12-01T12:00:22.000Z"}}