Read-only API keys in Discourse yield DiscourseConnect logins
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · GHSA-5gx7-f5fg-4jgw. Fix status from GitHub.
Summary
The DiscourseConnect provider endpoint GET /session/sso_provider accepts API keys and user API keys, and it issues signed login assertions for connected sites. A person holding a read-scoped key can obtain an assertion for that key's user and log in to a connected site with that user's permissions, which may exceed the key's read-only grant. Sites with enable_discourse_connect_provider enabled and a configured relying party are affected. No victim interaction is required.
Written with Claude Haiku 5.5 from the sources below · 2026-11-19
Description from the GitHub advisory
## Impact The DiscourseConnect provider endpoint (GET /session/sso_provider) accepted authentication through API keys and user API keys. This endpoint creates signed login assertions for connected sites. A read-scoped key could therefore be used to obtain an assertion for the user authenticated by that key, despite granting only API read access. On a vulnerable site, a person holding such a key could submit a valid DiscourseConnect login request and receive a signed assertion containing that user’s identity. A connected site that accepts the assertion could then log them in as that user, with the user’s permissions on that site. Those permissions may include reading or changing data beyond the key’s read-only grant. The issue affects sites with enable_discourse_connect_provider enabled and a configured relying party. Exploitation requires a valid read-scoped key for the target user and a valid login request for that relying party. The key might have been leaked or legitimately shared for read access; prior compromise is not required. No victim interaction or configuration change is required during exploitation. ## Workarounds Until the fix is installed, disabling the DiscourseConnect provider prevents this attack path. Sites that must keep it enabled should revoke read-scoped keys held by parties who must not be able to log in as the associated users.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | Discourse | — | 2026.11.0-latest.2 | Patch available | GHSA-5gx7-f5fg-4jgw |
| — | Discourse | >= 2026.10.0-latest | 2026.10.2 | Patch available | GHSA-5gx7-f5fg-4jgw |
| — | Discourse | >= 2026.9.0-latest | 2026.9.3 | Patch available | GHSA-5gx7-f5fg-4jgw |
| — | Discourse | >= 2026.7.0-latest | 2026.7.6 | Patch available | GHSA-5gx7-f5fg-4jgw |
- Discourse Vendor— Affected — Fixed in 2026.11.0-latest.2 Patch available GHSA-5gx7-f5fg-4jgw
- Discourse Vendor— Affected >= 2026.10.0-latest Fixed in 2026.10.2 Patch available GHSA-5gx7-f5fg-4jgw
- Discourse Vendor— Affected >= 2026.9.0-latest Fixed in 2026.9.3 Patch available GHSA-5gx7-f5fg-4jgw
- Discourse Vendor— Affected >= 2026.7.0-latest Fixed in 2026.7.6 Patch available GHSA-5gx7-f5fg-4jgw
Remediation
Upgrade Discourse to 2026.11.0-latest.2, 2026.10.2, 2026.9.3 or 2026.7.6, matching your release line. Until the fix is installed, disable the DiscourseConnect provider, or revoke read-scoped keys held by parties who must not log in as the associated users.
Written with Claude Haiku 5.5 from the sources below · 2026-11-19
- Fix · GHSA-5gx7-f5fg-4jgw Discourse Fixed in 2026.11.0-latest.2 Advisory →
- Fix · GHSA-5gx7-f5fg-4jgw Discourse Fixed in 2026.10.2 Advisory →
- Fix · GHSA-5gx7-f5fg-4jgw Discourse Fixed in 2026.9.3 Advisory →
- Fix · GHSA-5gx7-f5fg-4jgw Discourse Fixed in 2026.7.6 Advisory →
Timeline
- 2026-11-19 Threatist record created from GHSA-5gx7-f5fg-4jgw
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences