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

- Severity: High 8.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 38% of CVEs (2026-12-01)
- Published: 2025-06-09T12:36:29.651Z
- Modified: 2026-09-10T16:00:32.897Z
- Also known as: BIT-DISCOURSE-2025-48877, GHSA-cm93-6m2m-cjcv
- Weaknesses: CWE-1038
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: 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`.

(As written by CVE List.)

## Affected

- discourse discourse: < 3.4.4; < 3.5.0.beta5; < 3.5.0.beta6-dev; before 3.4.4; before 3.5.0; 3.5.0
- discourse (Bitnami): before 3.4.4

## Every score

- GitHub_M: CVSS:4.0 8.1 High `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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/discourse/discourse/security/advisories/GHSA-cm93-6m2m-cjcv> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-48877> (web)

## Sources

- CVE List: [CVE-2025-48877](https://www.cve.org/CVERecord?id=CVE-2025-48877), CVE Terms of Use, modified 2025-06-09
- NVD: [CVE-2025-48877](https://nvd.nist.gov/vuln/detail/CVE-2025-48877), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-DISCOURSE-2025-48877](https://osv.dev/vulnerability/BIT-DISCOURSE-2025-48877), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2025-48877 · Whole record: https://cve.day/CVE-2025-48877.json · Rebuilt by cve.day 2026-11-25T22:58:58.938Z
