{"id":"CVE-2026-27166","published":"2026-03-19T20:29:22Z","modified":"2026-03-21T03:31:58Z","title":"Discourse vulnerable to HTML injection via prohibited iframe URLs","vendor":"discourse","product":"discourse","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00222,"percentile":0.13085,"provenance":"source"},"cwes":[{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"}],"references":[{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-h653-cq78-vjj2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/discourse/discourse/commit/c4762a4fac2f61f52f325396b11d3aeb955ea925","tags":["x_refsource_MISC"]}],"priority":{"score":5.5,"factors":[{"name":"EPSS percentile","points":2.62},{"name":"CVSS severity","points":2.87}]},"vendorSlug":"discourse","affectedVersions":[{"vendor":"discourse","product":"discourse","versions":["< 2026.3.0-latest.1",">= 2026.2.0-latest, < 2026.2.1",">= 2026.1.0-latest, < 2026.1.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-21T03:31:46.439342Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-13187","exploited":false,"provenance":"source"}}