CVE-2025-48877
published high CVSS 4.0 · 8.1Discourse vulnerable to auto-executing of third-party code in embedded CodePen iframe
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| discourse | — | discourse< 3.4.4 · < 3.5.0.beta5 · < 3.5.0.beta6-dev | Affected | Not stated | GitHub_M |
Description
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 `allowed_iframes` 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 `allowed_iframes`.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| discourse | discourse | < 3.4.4 (affected)< 3.5.0.beta5 (affected)< 3.5.0.beta6-dev (affected) | GitHub_M · cna |
Weaknesses
1- CWE-1038 CWE-1038: Insecure Automated Optimizations
References
1Provider assertions
2GitHub_M · cna
Discourse vulnerable to auto-executing of third-party code in embedded CodePen iframe
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 650b7b0d925955b673ee982537883c2e51e333e51441f2f5ca182613c0358d40
- Ingested
- 23 Sep 2026, 08:50:38 UTC
- Source record
- Official CVE record