{"id":"CVE-2025-48877","aliases":["CVE-2025-48877","BIT-DISCOURSE-2025-48877","GHSA-cm93-6m2m-cjcv"],"related":[],"kind":"vulnerability","state":"published","title":"Discourse vulnerable to auto-executing of third-party code in embedded CodePen iframe","summary":"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`.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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`.","source":"cvelist"},{"lang":"es","text":"Discourse es una plataforma de discusión de código abierto. En versiones anteriores a la 3.4.4 de la rama `stable`, la 3.5.0.beta5 de la rama `beta` y la 3.5.0.beta6-dev de la rama `tests-passed`, Codepen está presente en la configuración predeterminada del sitio `allowed_iframes` y puede ejecutar automáticamente código JavaScript arbitrario en el ámbito de los iframes, lo cual no es intencionado. Este problema se ha corregido en la 3.4.4 de la rama `stable`, la 3.5.0.beta5 de la rama `beta` y la 3.5.0.beta6-dev de la rama `tests-passed`. Como solución alternativa, se puede eliminar el prefijo Codepen de los `allowed_iframes` de un sitio.","source":"nvd"}],"published":"2025-06-09T12:36:29.651Z","modified":"2026-09-10T16:00:32.897Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-1038"],"affected":[{"ranges":[{"version":"< 3.4.4","status":"affected"},{"version":"< 3.5.0.beta5","status":"affected"},{"version":"< 3.5.0.beta6-dev","status":"affected"}],"vendor":"discourse","product":"discourse","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"3.4.4"},{"status":"affected","fixed":"3.5.0"},{"status":"affected","version":"3.5.0"},{"status":"affected","version":"3.5.0"},{"status":"affected","version":"3.5.0"},{"status":"affected","version":"3.5.0"}],"vendor":"discourse","product":"discourse","cpe":"cpe:2.3:a:discourse:discourse:*:*:*:*:stable:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.4.4"}],"ecosystem":"Bitnami","package":"discourse","purl":"pkg:bitnami/discourse","source":"bitnami"}],"references":[{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-cm93-6m2m-cjcv","tags":["advisory","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48877","tags":["web"],"sources":["bitnami"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-06-09T15:11:20.634Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-48877","url":"https://www.cve.org/CVERecord?id=CVE-2025-48877","licence":"CVE Terms of Use","modified":"2025-06-09T15:17:08.586Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-48877","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48877","licence":"Public domain","modified":"2026-06-17T09:30:25.080Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DISCOURSE-2025-48877","url":"https://osv.dev/vulnerability/BIT-DISCOURSE-2025-48877","licence":"Apache-2.0","modified":"2026-09-10T16:00:32.897Z"}],"updatedAt":"2026-11-25T22:58:58.938Z","epss":{"score":0.00426,"percentile":0.38822,"date":"2026-12-01T12:00:22.000Z"}}