CVE-2025-22602
Published: 04 February 2025
Summary
CVE-2025-22602 is a medium-severity Cross-site Scripting (CWE-79) vulnerability in Discourse Discourse. Its CVSS base score is 6.5 (Medium).
Operationally, exploitation aligns with the MITRE ATT&CK technique JavaScript (T1059.007); ranked at the 35.0th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2025-2877
Vulnerability details
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…
more
been patched in the latest version of Discourse. Users are advised to upgrade. Users unable to upgrade should enable CSP.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
Stored DOM-based XSS enables arbitrary JavaScript execution in users' browsers via malicious video placeholders on Discourse sites without CSP, facilitating JavaScript command execution, browser session hijacking, exploitation of public-facing web applications, and theft of web session cookies or browser credentials.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.
Validates web inputs to reject script-related content that could produce XSS.
Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.