CVE-2025-48954
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-06-25

Last updated on: 2025-09-25

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-06-25
Last Modified
2025-09-25
Generated
2026-05-07
AI Q&A
2025-06-25
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 6 associated CPEs
Vendor Product Version / Range
discourse discourse to 3.5.0 (exc)
discourse discourse 3.5.0
discourse discourse 3.5.0
discourse discourse 3.5.0
discourse discourse 3.5.0
discourse discourse 3.5.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

CVE-2025-48954 is a high-severity Cross-Site Scripting (XSS) vulnerability in Discourse versions prior to 3.5.0.beta6. It occurs due to improper sanitization of user-provided query parameters during the OAuth failure flow, which allows attackers to inject malicious scripts if the Content Security Policy (CSP) is not enabled. This can lead to unauthorized script execution in users' browsers. [1]


How can this vulnerability impact me? :

This vulnerability can impact you by allowing attackers to execute malicious scripts in your users' browsers, potentially leading to theft of sensitive information, session hijacking, or unauthorized actions performed on behalf of users. It affects confidentiality and integrity but does not impact availability. [1]


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability immediately, you should enable the Content Security Policy (CSP) on your Discourse installation. Additionally, upgrading Discourse to version 3.5.0.beta6 or later will patch the issue. [1]


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart