Arbitrary JavaScript Execution Vulnerability in Discourse

Check todayFull system takeover over the network, no login needed.
8.1HIGH

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
discourse < 3.4.4 to below 3.4.4 is vulnerable
discourse < 3.5.0.beta5 to below 3.5.0.beta5 is vulnerable
discourse < 3.5.0.beta6-dev to below 3.5.0.beta6-dev is vulnerable

Install the discourse release that fixes your version line, or later:

3.4.43.5.0.beta53.5.0.beta6-dev
Read the vendor advisory ↗
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

Authorization Flaw in Discourse

CVE-2026-44787
DiscourseDiscourse8.2HIGH

HTML Injection Flaw in Discourse Invitation System

CVE-2025-48062
DiscourseDiscourse7.1HIGH
View more Discourse vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction

CVSS V4

Score:
8.1
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None
.