Arbitrary JavaScript Execution Vulnerability in Discourse
CVE-2025-48877
Key Information:
- Vendor
Discourse
- Status
- CVE ID
- CVE ID:
- CVE-2025-48877
- Vendor
- CVE Published:
- 9 June 2025
- Fixed in
- Fixed in:
- 3.4.4, 3.5.0.beta5, 3.5.0.beta6-dev
Timeline
Vulnerability published
Vulnerability Reserved
How risky is it?
- Yes: Works over the network, no login needed
- No: No public exploit yet
- No: Not on CISA's exploited list
- No: No ransomware use seen
Our verdict
Check today
Find out if you're affected. If you are, patch.
What to do
1Update to a fixed version
Install the discourse release that fixes your version line, or later:
2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach discourse. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Why it's rated "Check today"
- It can be exploited remotely without credentials.
- Its CVSS severity is high (8.1).
What is CVE-2025-48877?
The Discourse platform contains a flaw that allows for arbitrary JavaScript execution due to the unintended inclusion of Codepen in the default allowed_iframes setting. This could allow malicious content to run within the scope of iframes on affected Discourse sites, leading to potential exploitation. The vulnerability has been addressed in later versions, and users are advised to update their software or remove the Codepen prefix from their allowed_iframes configuration as a temporary measure.
References
More Discourse Vulnerabilities
Authorization Flaw in Discourse
HTML Injection Flaw in Discourse Invitation System
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction