CVE-2025-48877: Discourse vulnerable to auto-executing of third-party code in embedded CodePen iframe

Published Jun 9, 2025
·
Updated

Discourse is an open-source discussion platform. Prior to version 3.4.4 of the stable branch, version 3.5.0.beta5 of the beta branch, and version 3.5.0.beta6-dev of the tests-passed branch, Codepen is present in the default allowediframes site setting, and it can potentially auto-run arbitrary JS in the iframe scope, which is unintended. This issue is patched in version 3.4.4 of the stable branch, version 3.5.0.beta5 of the beta branch, and version 3.5.0.beta6-dev of the tests-passed branch. As a workaround, the Codepen prefix can be removed from a site's allowediframes.

Affected Software

6 affected components
Discourse Discourse<3.4.4
Discourse Discourse<3.5.0
Discourse Discourse=3.5.0-beta1
Discourse Discourse=3.5.0-beta2
Discourse Discourse=3.5.0-beta3
Discourse Discourse=3.5.0-beta4

Event History

Jun 9, 2025
CVE Published
via MITRE·12:36 PM
Data Sourced
via MITRE·12:36 PM
DescriptionWeakness
Data Sourced
via NVD·01:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-48877?

CVE-2025-48877 has been classified with a severity level indicating potential risk due to improper handling of iframes.

2

How do I fix CVE-2025-48877?

To mitigate CVE-2025-48877, upgrade to Discourse version 3.4.4 or later for the stable branch, or 3.5.0.beta5 or later for the beta branches.

3

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

CVE-2025-48877 affects Discourse versions prior to 3.4.4 in the stable branch and versions prior to 3.5.0.beta5 in the beta branch.

4

Is there a workaround for CVE-2025-48877 until I can update?

Disabling Codepen in the allowed_iframes site setting serves as a temporary workaround for CVE-2025-48877.

5

What components of Discourse are impacted by CVE-2025-48877?

CVE-2025-48877 impacts the iframe handling feature within Discourse, specifically related to the default allowed_iframes setting.

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