← Vulnerability feed

Vulnerability record · CVE-2022-21684 · published 13 January 2022

CVE-2022-21684: Discourse improper authentication vulnerability

Discourse · Discourse

Discourse is an open source discussion platform. Versions prior to 2.7.13 in `stable`, 2.8.0.beta11 in `beta`, and 2.8.0.beta11 in `tests-passed` allow some users to log in to a community before they should be able to do so. A user invited via email to a forum with `must_approve_users` enabled is going to be automatically logged in, bypassing the check that does not allow unapproved users to sign in. They will be able to do everything an approved user can do. If they logout, they cannot log back in. This issue is patched in the `stable` version 2.7.13, `beta` version 2.8.0.beta11, and `tests-passed` version 2.8.0.beta11. One may disable invites as a workaround. Administrators can increase `min_trust_level_to_allow_invite` to reduce the attack surface to more trusted users.

8.8 CVSS 3.1 High EPSS 0.83% · top 44.1% CWE-287 · Improper authentication
8.8CVSS 3.1 base score, v2 6.0
0.83%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
6References
17 Jun 2026Last modified by NVD

Description

Discourse is an open source discussion platform. Versions prior to 2.7.13 in `stable`, 2.8.0.beta11 in `beta`, and 2.8.0.beta11 in `tests-passed` allow some users to log in to a community before they should be able to do so. A user invited via email to a forum with `must_approve_users` enabled is going to be automatically logged in, bypassing the check that does not allow unapproved users to sign in. They will be able to do everything an approved user can do. If they logout, they cannot log back in. This issue is patched in the `stable` version 2.7.13, `beta` version 2.8.0.beta11, and `tests-passed` version 2.8.0.beta11. One may disable invites as a workaround. Administrators can increase `min_trust_level_to_allow_invite` to reduce the attack surface to more trusted users.

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-21684 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.9CVE-2025-68662Discourse server-side request forgery (ssrf) vulnerabilityDiscourse is an open source discussion platform. In versions prior to 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0, a hostname validation issue in Final…EPSS 0.33%9.8CVE-2023-47121Discourse server-side request forgery (ssrf) vulnerabilityDiscourse is an open source platform for community discussion. Prior to version 3.1.3 of the `stable` branch and version 3.2.0.beta3 of the `beta` an…EPSS 0.69%9.8CVE-2021-41163Discourse injection vulnerabilityDiscourse is an open source platform for community discussion. In affected versions maliciously crafted requests could lead to remote code execution.…EPSS 20%9.1CVE-2024-49765Discourse vulnerabilityDiscourse is an open source platform for community discussion. Sites that are using discourse connect but still have local logins enabled could allow…EPSS 0.36%9.0CVE-2026-53963Discourse cross-site scripting vulnerabilityDiscourse is an open-source discussion platform. Prior to 2026.6.0, 2026.5.1, 2026.4.2, and 2026.1.5, a malicious second factor name on an attacker-c…EPSS 0.74%8.8CVE-2022-39356Discourse improper authorization vulnerabilityDiscourse is a platform for community discussion. Users who receive an invitation link that is not scoped to a single email address can enter any non…EPSS 0.61%8.7CVE-2026-27934Discourse vulnerabilityDiscourse is an open-source discussion platform. Versions prior to 2026.3.0-latest.1, 2026.2.1, and 2026.1.2 have a lack of visibility checks with a …EPSS 0.42%8.7CVE-2025-48053Discourse uncontrolled resource consumption vulnerabilityDiscourse is an open-source discussion platform. Prior to version 3.4.4 of the `stable` branch, version 3.5.0.beta5 of the `beta` branch, and version…EPSS 0.37%

Source: NIST National Vulnerability Database (record CVE-2022-21684), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.