All vulnerabilities

Servers and applications

GHSA-5gx7-f5fg-4jgw

Read-only API keys could authenticate users to sites connected through DiscourseConnect

Severity
Medium 6.4
Published
19 Nov 2026
Last changed
19 Nov 2026
Added to UpHeron
19 Nov 2026
Fixed in
2026.7.6, 2026.9.3, 2026.10.2, 2026.11.0-latest.2
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read some data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Sources
Project advisories (GitHub)

Description

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.

From discourse/discourse's security advisory. Shortened; the full text is there.

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.

Workarounds as given by discourse/discourse's security advisory.

Affected software

SoftwareAffected versions
DiscourseServers and applications · github:discourse/discourse
  • Every version before 2026.11.0-latest.2
  • From 2026.7.0-latest before 2026.7.6
  • From 2026.9.0-latest before 2026.9.3
  • From 2026.10.0-latest before 2026.10.2

About Discourse

open source Internet forum software application

From Wikidata, CC0 1.0.
Docker Hub pulls
175,357Docker Hub, 15 Nov 2026
GitHub stars
48,085GitHub, 15 Nov 2026
Forks
9,063GitHub, 15 Nov 2026
License
GNU General Public License, version 2.0Wikidata
Written in
Ruby, JavaScriptWikidata
First released
2013Wikidata
First published on GitHub
12 Jan 2013GitHub

References