CVE-2025-46824 Discourse Code Review Plugin vulnerable to XSS via auto link commits
An attacker can execute arbitrary JavaScript in users' browsers by posting malicious GitHub commit links in the Discourse Code Review Plugin.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-46824?
CVE-2025-46824 is a low-severity cross-site scripting vulnerability in discourse-code-review, published on 7 May 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
The Discourse Code Review Plugin allows users to review GitHub commits on Discourse. Prior to commit eed3a80, an attacker can execute arbitrary JavaScript on users' browsers by posting links to malicious GitHub commits. This problem is patched in commit eed3a80 of the discourse-code-review plugin. As a workaround, one may disable the plugin.
Weakness: CWE-79
Which versions are affected by CVE-2025-46824?
How do I fix CVE-2025-46824?
No fix has been published for CVE-2025-46824 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-46824 being exploited?
There is no known exploitation of CVE-2025-46824 in the wild and no public exploit code.
Sources
Also known as GHSA-358v-cwvc-gxh5.