CVE-2025-48062 Details
Description
Discourse is an open-source discussion platform. Prior to version 3.4.4 of the `stable` branch, version 3.5.0.beta5 of the `beta` branch, and version 3.5.0.beta6-dev of the `tests-passed` branch, certain invites via email may result in HTML injection in the email body if the topic title includes HTML. This includes inviting someone (without an account) to a PM and inviting someone (without an account) to a topic with a custom message. This issue is patched in version 3.4.4 of the `stable` branch, version 3.5.0.beta5 of the `beta` branch, and version 3.5.0.beta6-dev of the `tests-passed` branch. This can be worked around if the relevant templates are overridden without `{topic_title}`.
A vulnerability allowing HTML injection has been identified in Discourse, an open-source discussion platform. This issue affects versions prior to 3.4.4 of the stable branch, as well as versions 3.5.0.beta5 of the beta branch and 3.5.0.beta6-dev of the tests-passed branch. The vulnerability arises when certain invites are sent via email, particularly if the topic title contains HTML. This issue can occur when inviting someone without an account to a private message or to a topic with a custom message.
Users can upgrade to Discourse version 3.4.4 on the stable branch or 3.5.0.beta5 on the beta branch. For those on the tests-passed branch, version 3.5.0.beta6-dev should be installed. Alternatively, the vulnerability can be mitigated by overriding the relevant email templates to remove the `{topic_title}` placeholder.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 9, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/discourse/discourse/security/advisories/GHSA-x8mp-chx3-6x2p | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-116 | Improper Encoding or Escaping of Output | [email protected] |
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| discourse discourse | < 3.4.4 < 3.5.0 3.5.0 beta1 3.5.0 beta2 3.5.0 beta3 3.5.0 beta4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 26, 2025 | Reanalysis | [email protected] |
| Aug 25, 2025 | Initial Analysis | [email protected] |
| Jun 9, 2025 | New CVE Received | [email protected] |