Vulnerabilities · 2023 · Discourse
CVE-2023-25172
Discourse vulnerability
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 products
Discourse. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Discourse runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/discourse/discourse/security/advisories/GHSA-7pm2-prxw-wrvp · Vendor Advisory
- github.com/discourse/discourse/commit/1a5a6f66cb821ed29a737311d6fdc2eba5adc915 · Patch
- github.com/discourse/discourse/commit/c186a46910431020e8efc425dec2133e7a99fa9a · Patch
- github.com/discourse/discourse/pull/20008 · Patch
- github.com/discourse/discourse/pull/20009 · Patch
- nvd.nist.gov/vuln/detail/CVE-2023-25172
- cve.org/CVERecord?id=CVE-2023-25172
More vulnerabilities in Discourse products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.