{"id":"CVE-2026-27166","aliases":["CVE-2026-27166","BIT-DISCOURSE-2026-27166","GHSA-h653-cq78-vjj2"],"related":[],"kind":"vulnerability","state":"published","title":"Discourse vulnerable to HTML injection via prohibited iframe URLs","summary":"Discourse is an open source discussion platform. Prior to versions 2026.3.0-latest.1, 2026.2.1 and  2026.1.2, insufficient cleanup in the default Codepen allowed iframes value allows an attacker to trick a user into changing the URL of the main page. This issue has been fixed in versions 2026.3.0-latest.1, 2026.2.1 and  2026.1.2. To workaround this issue, remove Codepen from the list of allowed iframes.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Discourse is an open source discussion platform. Prior to versions 2026.3.0-latest.1, 2026.2.1 and  2026.1.2, insufficient cleanup in the default Codepen allowed iframes value allows an attacker to trick a user into changing the URL of the main page. This issue has been fixed in versions 2026.3.0-latest.1, 2026.2.1 and  2026.1.2. To workaround this issue, remove Codepen from the list of allowed iframes.","source":"cvelist"},{"lang":"es","text":"Discourse es una plataforma de discusión de código abierto. Antes de las versiones 2026.3.0-latest.1, 2026.2.1 y 2026.1.2, una limpieza insuficiente en el valor predeterminado de iframes permitidos de Codepen permite a un atacante engañar a un usuario para que cambie la URL de la página principal. Este problema ha sido solucionado en las versiones 2026.3.0-latest.1, 2026.2.1 y 2026.1.2. Como solución alternativa a este problema, elimine Codepen de la lista de iframes permitidos.","source":"nvd"},{"lang":"en","text":"Discourse is an open source discussion platform. Prior to versions 2026.3.0, 2026.2.1 and 2026.1.2, insufficient cleanup in the default Codepen allowed iframes value allows an attacker to trick a user into changing the URL of the main page. This issue has been fixed in versions 2026.3.0, 2026.2.1 and 2026.1.2. To workaround this issue, remove Codepen from the list of allowed iframes.","format":"markdown","source":"bitnami"}],"published":"2026-03-19T20:29:22.570Z","modified":"2026-09-08T08:46:21.587Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:N","score":4.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:N","score":4.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-80"],"affected":[{"ranges":[{"version":"< 2026.3.0-latest.1","status":"affected"},{"version":">= 2026.2.0-latest, < 2026.2.1","status":"affected"},{"version":">= 2026.1.0-latest, < 2026.1.2","status":"affected"}],"vendor":"discourse","product":"discourse","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"2026.3.0"},{"status":"affected","introduced":"2026.1.0","fixed":"2026.1.2"},{"status":"affected","introduced":"2026.2.0","fixed":"2026.2.1"},{"status":"affected","version":"2026.3.0"}],"vendor":"discourse","product":"discourse","cpe":"cpe:2.3:a:discourse:discourse:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"2026.1.0","status":"affected","fixed":"2026.1.2"},{"type":"semver","introduced":"2026.2.0","status":"affected","fixed":"2026.2.1"},{"type":"semver","introduced":"2026.3.0","status":"affected","fixed":"2026.3.0"}],"ecosystem":"Bitnami","package":"discourse","purl":"pkg:bitnami/discourse","source":"bitnami"}],"references":[{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-h653-cq78-vjj2","tags":["advisory","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/discourse/discourse/commit/c4762a4fac2f61f52f325396b11d3aeb955ea925","tags":["fix","patch","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27166","tags":["web"],"sources":["bitnami"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-21T03:31:46.439Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-27166","url":"https://www.cve.org/CVERecord?id=CVE-2026-27166","licence":"CVE Terms of Use","modified":"2026-03-21T03:31:58.296Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-27166","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27166","licence":"Public domain","modified":"2026-06-17T10:26:46.800Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DISCOURSE-2026-27166","url":"https://osv.dev/vulnerability/BIT-DISCOURSE-2026-27166","licence":"Apache-2.0","modified":"2026-09-08T08:46:21.587Z"}],"updatedAt":"2026-11-25T22:59:16.185Z","epss":{"score":0.00222,"percentile":0.1367,"date":"2026-12-02T12:00:21.000Z"}}