Skip to content

CVE-2023-25172 Discourse vulnerable to Cross-site Scripting - user name displayed on post

MediumCVSS 5.4 EPSS 0.67%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
discourse < 3.0.1; < 3.1.0; = 3.1.0-beta1; = beta < 3.1.0.beta2 +2 more 3.0.1, 3.1.0 Fixed

Affected products

ProductAffected versionsFixed in
discourse = stable < 3.0.1 No fix listed
discourse = beta < 3.1.0.beta2 No fix listed
discourse = tests-passed < 3.1.0.beta2 No fix listed
discourse < 3.0.1 3.0.1
discourse < 3.1.0 3.1.0
discourse = 3.1.0-beta1 No fix listed

References