CVE-2025-48954
JSON

8.1high

Discourse vulnerable to XSS via user-provided query parameter in oauth failure flow

Severity
8.1high CVSS:3.1 by GitHub_M
Exploit likelihood
0.73% (higher than 55% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
BIT-DISCOURSE-2025-48954GHSA-26p5-mjjh-wfcf

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

Product or packageVersionsReported by
discourse discourse< 3.5.0.beta6, before 3.5.0, 3.5.0CVE List, NVD
discourse (Bitnami)before 3.5.0Bitnami Vulnerability Database

All scores

GitHub_M8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Discourse es una plataforma de discusión de código abierto. Las versiones anteriores a la 3.5.0.beta6 son vulnerables a ataques de cross-site scripting cuando la política de seguridad de contenido no está habilitada al usar inicios de sesión con redes sociales. La versión 3.5.0.beta6 soluciona el problema. Como solución alternativa, active la política de seguridad de contenido.

Bitnami Vulnerability Database

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

References

Sources

SourceRecordLicence
CVE ListCVE-2025-48954 changed 2025-06-25CVE Terms of Use
NVDCVE-2025-48954 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-DISCOURSE-2025-48954 changed 2026-09-10Apache-2.0