Incorrect Behavior Order: Validate Before Canonicalize in Discourse - CVE-2026-91134

 

Incorrect Behavior Order: Validate Before Canonicalize in Discourse - CVE-2026-91134

Published: October 28, 2026


Vulnerability identifier: #VU158249
CSH Severity: Low
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-91134
CWE-ID: CWE-180
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to bypass iframe source restrictions and embed content from an attacker-controlled host in posts.

The vulnerability exists due to insufficient validation of encoded iframe source URLs in the Discourse post sanitizer when checking the allowed_iframes prefix policy. A remote user can submit a post containing an iframe source with encoded userinfo to bypass the allowlist and cause a browser to load content from an attacker-controlled host.


Affected software

Discourse

How to mitigate CVE-2026-91134

Install security update from vendor's website.

Discourse - addressed in versions 2026.1.8, 2026.6.3, 2026.7.2, 2026.8.0

External References

Related Security Bulletins