MEDIUM
Discourse vulnerable to HTML injection via prohibited iframe URLs
Published Mar 19, 2026
5.4
MEDIUMCVSS 3.1
EPSS 0.26%
Description
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.
Affected products
-
- Version < 2026.3.0-latest.1StatusaffectedConstraints-
- Version >= 2026.1.0-latest, < 2026.1.2StatusaffectedConstraints-
- Version >= 2026.2.0-latest, < 2026.2.1StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Weaknesses (1)
References (3)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-13187 Advisory
- https://github.com/discourse/discourse/commit/c4762a4fac2f61f52f325396b11d3aeb955ea925 x_refsource_MISCPatch
- https://github.com/discourse/discourse/security/advisories/GHSA-h653-cq78-vjj2 x_refsource_CONFIRMVendor Advisory
| Link | Providers | Tags |
|---|---|---|
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-13187 | Advisory | |
| https://github.com/discourse/discourse/commit/c4762a4fac2f61f52f325396b11d3aeb955ea925 | x_refsource_MISCPatch | |
| https://github.com/discourse/discourse/security/advisories/GHSA-h653-cq78-vjj2 | x_refsource_CONFIRMVendor Advisory |
Change history (0)
No recorded changes yet.
Sources
CVE.org / MITRE
Status PUBLISHED
Assigner GitHub_M
Published Mar 19, 2026
Updated Mar 21, 2026
Reserved Feb 18, 2026
Link CVE-2026-27166
CISA Vulnrichment
Updated Mar 21, 2026
ENISA EUVD
EUVD-2026-13187 Assigner GitHub_M
Published Mar 19, 2026
Updated Mar 21, 2026
Exploited since n/a
Link EUVD-2026-13187