Vulnerability · Published Jan 30, 2024 · Assigned by GitHub_M
CVE-2024-23834Discourse improperly sanitized user input leads to XSS
Medium 6.3
In plain English
A medium-severity cross-site scripting in discourse from discourse. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities).
Official description
Discourse is an open-source discussion platform. Improperly sanitized user input could lead to an XSS vulnerability in some situations. This vulnerability only affects Discourse instances which have disabled the default Content Security Policy. The vulnerability is patched in 3.1.5 and 3.2.0.beta5. As a workaround, ensure Content Security Policy is enabled and does not include `unsafe-inline`.
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
References
- https://github.com/discourse/discourse/security/advisories/GHSA-rj3g-8q6p-63pc x_refsource_CONFIRM
- https://github.com/discourse/discourse/commit/568d704a94c528b7c2cb0f3512a7b7b606bc3000 x_refsource_MISC
- https://meta.discourse.org/t/3-1-5-security-and-bug-fix-release/293094 x_refsource_MISC
- https://meta.discourse.org/t/3-2-0-beta5-add-groups-to-dms-mobile-chat-footer-redesign-passkeys-enabled-by-default-and-more/293093 x_refsource_MISC