{"id":"CVE-2023-25172","state":"PUBLISHED","title":"Discourse vulnerable to Cross-site Scripting - user name displayed on post","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.","publishedAt":"2023-03-17T16:07:27.668Z","updatedAt":"2025-02-25T14:54:25.650Z","severity":{"score":4.4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["discourse discourse"],"affected":[{"vendor":"discourse","product":"discourse","versions":[{"version":"stable < 3.0.1","status":"affected"},{"version":"beta < 3.1.0.beta2","status":"affected"},{"version":"tests-passed < 3.1.0.beta2","status":"affected"}]}],"references":["https://github.com/discourse/discourse/security/advisories/GHSA-7pm2-prxw-wrvp","https://github.com/discourse/discourse/pull/20008","https://github.com/discourse/discourse/pull/20009","https://github.com/discourse/discourse/commit/1a5a6f66cb821ed29a737311d6fdc2eba5adc915","https://github.com/discourse/discourse/commit/c186a46910431020e8efc425dec2133e7a99fa9a"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:05:43.909Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/25xxx/CVE-2023-25172.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-25172","state":"PUBLISHED","datePublished":"2023-03-17T16:07:27.668Z","dateUpdated":"2025-02-25T14:54:25.650Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-02-03T16:59:18.247Z"},"containers":{"cna":{"title":"Discourse vulnerable to Cross-site Scripting - user name displayed on post","descriptions":[{"lang":"en","value":"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":[{"vendor":"discourse","product":"discourse","versions":[{"version":"stable < 3.0.1","status":"affected"},{"version":"beta < 3.1.0.beta2","status":"affected"},{"version":"tests-passed < 3.1.0.beta2","status":"affected"}]}],"references":[{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-7pm2-prxw-wrvp","name":"https://github.com/discourse/discourse/security/advisories/GHSA-7pm2-prxw-wrvp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/discourse/discourse/pull/20008","name":"https://github.com/discourse/discourse/pull/20008","tags":["x_refsource_MISC"]},{"url":"https://github.com/discourse/discourse/pull/20009","name":"https://github.com/discourse/discourse/pull/20009","tags":["x_refsource_MISC"]},{"url":"https://github.com/discourse/discourse/commit/1a5a6f66cb821ed29a737311d6fdc2eba5adc915","name":"https://github.com/discourse/discourse/commit/1a5a6f66cb821ed29a737311d6fdc2eba5adc915","tags":["x_refsource_MISC"]},{"url":"https://github.com/discourse/discourse/commit/c186a46910431020e8efc425dec2133e7a99fa9a","name":"https://github.com/discourse/discourse/commit/c186a46910431020e8efc425dec2133e7a99fa9a","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":4.4,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-03-17T16:07:27.668Z"},"source":{"advisory":"GHSA-7pm2-prxw-wrvp","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-7pm2-prxw-wrvp","name":"https://github.com/discourse/discourse/security/advisories/GHSA-7pm2-prxw-wrvp","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/discourse/discourse/pull/20008","name":"https://github.com/discourse/discourse/pull/20008","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/discourse/discourse/pull/20009","name":"https://github.com/discourse/discourse/pull/20009","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/discourse/discourse/commit/1a5a6f66cb821ed29a737311d6fdc2eba5adc915","name":"https://github.com/discourse/discourse/commit/1a5a6f66cb821ed29a737311d6fdc2eba5adc915","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/discourse/discourse/commit/c186a46910431020e8efc425dec2133e7a99fa9a","name":"https://github.com/discourse/discourse/commit/c186a46910431020e8efc425dec2133e7a99fa9a","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T11:18:36.267Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-02-25T14:28:58.686803Z","id":"CVE-2023-25172","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-02-25T14:54:25.650Z"}}]}}}