CVE-2025-48877
Discourse vulnerability analysis and mitigation

Overview

Discourse, an open-source discussion platform, was found to contain a security vulnerability (CVE-2025-48877) where CodePen was present in the default allowed_iframes site setting. This configuration could potentially allow auto-running arbitrary JavaScript code in the iframe scope, which was unintended behavior. The vulnerability affects versions prior to 3.4.4 of the stable branch, 3.5.0.beta5 of the beta branch, and 3.5.0.beta6-dev of the tests-passed branch (GitHub Advisory, NVD).

Technical details

The vulnerability has been assigned a CVSS v4.0 base score of 8.1 (HIGH) with the vector string CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U. The issue stems from the default configuration that includes CodePen in the allowed iframes list, potentially enabling unauthorized JavaScript execution within the iframe context (NVD, Wiz).

Impact

When exploited, this vulnerability could allow attackers to execute arbitrary JavaScript code within the iframe scope, potentially compromising the security of the Discourse platform and its users (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been 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 temporary workaround, administrators can remove the CodePen prefix from their site's allowed_iframes setting (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management