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

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 55% of CVEs (2026-12-01)
- Published: 2025-06-25T14:02:46.515Z
- Modified: 2026-09-10T16:00:32.907Z
- Also known as: BIT-DISCOURSE-2025-48954, GHSA-26p5-mjjh-wfcf
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- discourse discourse: < 3.5.0.beta6; before 3.5.0; 3.5.0
- discourse (Bitnami): before 3.5.0

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/discourse/discourse/security/advisories/GHSA-26p5-mjjh-wfcf> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-48954> (web)

## Sources

- CVE List: [CVE-2025-48954](https://www.cve.org/CVERecord?id=CVE-2025-48954), CVE Terms of Use, modified 2025-06-25
- NVD: [CVE-2025-48954](https://nvd.nist.gov/vuln/detail/CVE-2025-48954), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-DISCOURSE-2025-48954](https://osv.dev/vulnerability/BIT-DISCOURSE-2025-48954), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2025-48954 · Whole record: https://cve.day/CVE-2025-48954.json · Rebuilt by cve.day 2026-11-25T22:58:59.590Z
