CVE-2025-22602: Stored DOM-based XSS (without CSP) via video placeholders in Discourse

Published Feb 4, 2025
·
Updated

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.

Affected Software

6 affected components
Discourse Discourse
Discourse Discourse<3.3.4
Discourse Discourse<3.4.0
Discourse Discourse=3.4.0-beta1
Discourse Discourse=3.4.0-beta2
Discourse Discourse=3.4.0-beta3

Event History

Feb 4, 2025
CVE Published
via MITRE·08:51 PM
Data Sourced
via MITRE·08:51 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-22602?

CVE-2025-22602 is considered a high severity vulnerability due to its potential for executing arbitrary JavaScript in users' browsers.

2

How do I fix CVE-2025-22602?

To fix CVE-2025-22602, ensure that Content Security Policy (CSP) is enabled on your Discourse installation.

3

What versions of Discourse are affected by CVE-2025-22602?

CVE-2025-22602 affects all versions of Discourse that have CSP disabled.

4

What is the impact of CVE-2025-22602 on my Discourse site?

The impact of CVE-2025-22602 includes the possibility for attackers to run malicious scripts in the browsers of users visiting the affected Discourse site.

5

Is there a patch available for CVE-2025-22602?

Yes, a patch for CVE-2025-22602 has been released and is available for users to apply.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203