What’s Vulnerable › Vulnerabilities

CVE-2025-48954: Discourse vulnerable to XSS via user-provided query parameter in oauth failure flow

Description

Discourse is an open-source discussion platform. Versions prior to 3.5.0.beta6 are vulnerable to cross-site scripting when the content security policy isn't enabled when using social logins. Version 3.5.0.beta6 patches the issue. As a workaround, have the content security policy enabled.

Affected products

How to fix

Upgrade to a fixed version: discourse 3.5.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-48954 or the next vulnerability affects your stack