# CVE-2026-91132: Discourse: Wildcard iframe origin allowlist bypass via authority separators

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.3
- **CVSS:** 4.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-346
- **Published:** 2026-09-24T16:57:43.082Z
- **Modified:** 2026-09-29T03:17:21.457Z

## Who should check

- Anyone running discourse \< 2026.8.0; \>= 2026.7.0-latest, \< 2026.7.2; \>= 2026.6.0-latest, \< 2026.6.3; \>= 2026.1.0-latest, \< 2026.1.8

## Description

Discourse is an open-source discussion platform. Prior to 2026.1.8, 2026.6.3, 2026.7.2, and 2026.8.0, sites using wildcard patterns in the allowed\_iframes setting could accept a crafted iframe URL whose allowlisted suffix appeared after a URL authority separator. The wildcard origin check matched the allowed domain text, while browser URL parsing selected a different attacker-controlled origin. A user with posting privileges could exploit the flaw through a post or a Onebox oEmbed response and cause an attacker-controlled iframe to be rendered independently of the allowlisted domain. Successful exploitation requires a site-configured wildcard iframe pattern and the ability to create a post or trigger an oEmbed request for an attacker-controlled URL. This issue is fixed in versions 2026.1.8, 2026.6.3, 2026.7.2, and 2026.8.0.

## Affected and fixed versions

- discourse: \< 2026.8.0; \>= 2026.7.0-latest, \< 2026.7.2; \>= 2026.6.0-latest, \< 2026.6.3; \>= 2026.1.0-latest, \< 2026.1.8 (cvelist)

## Mitigation

- Upgrade discourse to 2026.1.8 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-91132. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-91132.md
Affected: discourse < 2026.8.0; >= 2026.7.0-latest, < 2026.7.2; >= 2026.6.0-latest, < 2026.6.3; >= 2026.1.0-latest, < 2026.1.8
Fixed in: discourse 2026.8.0, discourse 2026.7.2, discourse 2026.6.3, discourse 2026.1.8

Steps:
1. Search this machine and project for discourse: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-91132 being exploited?

There is no confirmed exploitation: CVE-2026-91132 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-91132?

Medium: CVSS 4.3 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-91132?

discourse \< 2026.8.0; \>= 2026.7.0-latest, \< 2026.7.2; \>= 2026.6.0-latest, \< 2026.6.3; \>= 2026.1.0-latest, \< 2026.1.8.

### Is there a fix for CVE-2026-91132?

Yes. Fixed in discourse 2026.8.0, discourse 2026.7.2, discourse 2026.6.3, discourse 2026.1.8. Upgrade discourse to 2026.1.8 or later.

### How do I check if I'm affected by CVE-2026-91132?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/discourse/discourse/security/advisories/GHSA-4q3q-hph3-3rvp>
- patch: <https://github.com/discourse/discourse/pull/42882>
- patch: <https://github.com/discourse/discourse/commit/80968704c1acb1d2ea2c6011dbf6c02ff13238e5>
- patch: <https://github.com/discourse/discourse/commit/d5ae0940707f95da5bc4562f7b544243e3103f8a>
- patch: <https://github.com/discourse/discourse/commit/d88e02ceb2eede4d8b851d9fe8aef753f3aa40b9>
- patch: <https://github.com/discourse/discourse/commit/db8064f2a2a2a3feb3308a1c932ac61d950c9e56>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-91132>

HTML: <https://flawdb.com/CVE-2026-91132> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-91132>
