CVE-2026-27166
published medium CVSS 3.1 · 4.1Discourse vulnerable to HTML injection via prohibited iframe URLs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| discourse | — | discourse< 2026.3.0-latest.1 · >= 2026.2.0-latest, < 2026.2.1 · >= 2026.1.0-latest, < 2026.1.2 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.1 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| discourse | discourse | < 2026.3.0-latest.1 (affected)>= 2026.2.0-latest, < 2026.2.1 (affected)>= 2026.1.0-latest, < 2026.1.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-80 CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
References
2Provider assertions
2GitHub_M · cna
Discourse vulnerable to HTML injection via prohibited iframe URLs
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7a3f576fe236eade29753d2692c3faf0f92aa6c95214097e09d470f25029842c
- Ingested
- 23 Sep 2026, 09:07:24 UTC
- Source record
- Official CVE record