CVE-2025-22602 Details
Description
Discourse is an open source platform for community discussion. In affected versions an attacker can execute arbitrary JavaScript on users' browsers by posting a malicious video placeholder html element. This issue only affects sites with CSP disabled. This problem has been patched in the latest version of Discourse. Users are advised to upgrade. Users unable to upgrade should enable CSP.
A stored DOM-based cross-site scripting vulnerability has been identified in Discourse, an open-source community discussion platform. This issue allows attackers to execute arbitrary JavaScript in the browsers of users who view a malicious video placeholder HTML element. The vulnerability exists in versions of Discourse prior to 3.3.4 for the stable branch, prior to 3.4.0.beta4 for the beta branch, and prior to 3.4.0.beta4 for the tests-passed branch. The problem arises only on sites with Content Security Policy (CSP) disabled.
Users are advised to upgrade to Discourse versions 3.3.4 or later for the stable branch, and 3.4.0.beta4 or later for the beta and tests-passed branches. For users unable to upgrade, enabling Content Security Policy (CSP) is recommended.
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 Feb 12, 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-jcjx-694p-c5m3 | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| discourse discourse | < 3.3.4 < 3.4.0 3.4.0 beta1 3.4.0 beta2 3.4.0 beta3 |
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 26, 2025 | Initial Analysis | [email protected] |
| Feb 4, 2025 | New CVE Received | [email protected] |