2.6low
Invite bypasses user approval in Discourse
- Severity
- 2.6low CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.97% (higher than 63% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- BIT-DISCOURSE-2022-31025GHSA-x7jh-mx5q-6f9q
Description
Discourse is an open source platform for community discussion. Prior to version 2.8.4 on the `stable` branch and 2.9.0beta5 on the `beta` and `tests-passed` branches, inviting users on sites that use single sign-on could bypass the `must_approve_users` check and invites by staff are always approved automatically. The issue is patched in Discourse version 2.8.4 on the `stable` branch and version `2.9.0.beta5` on the `beta` and `tests-passed` branches. As a workaround, disable invites or increase `min_trust_level_to_allow_invite` to reduce the attack surface to more trusted users.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| discourse discourse | < 2.8.4, >= 2.9.0.beta1, <= 2.9.0.beta4, before 2.8.4, 2.9.0 | CVE List, NVD |
| discourse (Bitnami) | before 2.8.4 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 2.6low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Discourse is an open source platform for community discussion. Prior to version 2.8.4 on the `stable` branch and 2.9.0beta5 on the `beta` and `tests-passed` branches, inviting users on sites that use single sign-on could bypass the `must_approve_users` check and invites by staff are always approved automatically. The issue is patched in Discourse version 2.8.4 on the `stable` branch and version `2.9.0.beta5` on the `beta` and `tests-passed` branches. As a workaround, disable invites or increase `min_trust_level_to_allow_invite` to reduce the attack surface to more trusted users.
NVD (es)
Discourse es una plataforma de código abierto para el debate comunitario. En versiones anteriores a 2.8.4 en la rama "stable" y de la 2.9.0beta5 en las ramas "beta" y "tests-passed", invitar a usuarios en sitios que usan el inicio de sesión único podía omitir la comprobación "must_approve_users" y las invitaciones del personal siempre son aprobadas automáticamente. El problema está parcheado en la versión 2.8.4 de Discourse en la rama "stable" y en versión "2.9.0.beta5" en las ramas "beta" y "tests-passed". Como mitigación, deshabilite las invitaciones o aumente "min_trust_level_to_allow_invite" para reducir la superficie de ataque a los usuarios de mayor confianza
Bitnami Vulnerability Database
Discourse is an open source platform for community discussion. Prior to version 2.8.4 on the stable branch and 2.9.0 on the beta and tests-passed branches, inviting users on sites that use single sign-on could bypass the must_approve_users check and invites by staff are always approved automatically. The issue is patched in Discourse version 2.8.4 on the stable branch and version 2.9.0.beta5 on the beta and tests-passed branches. As a workaround, disable invites or increase min_trust_level_to_allow_invite to reduce the attack surface to more trusted users.
References
| https://github.com/discourse/discourse/security/advisories/GHSA-x7jh-mx5q-6f9q | advisory, third-party-advisory | |
| https://github.com/discourse/discourse/pull/16974 | advisory, patch, third-party-advisory | |
| https://github.com/discourse/discourse/pull/16984 | advisory, patch, third-party-advisory | |
| https://github.com/discourse/discourse/commit/0fa0094531efc82d9371f90a02aa804b176d59cf | advisory, patch, third-party-advisory | |
| https://github.com/discourse/discourse/commit/7c4e2d33fa4b922354c177ffc880a2f2701a91f9 | advisory, patch, third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-31025 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-31025 changed 2025-04-23 | CVE Terms of Use |
| NVD | CVE-2022-31025 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-DISCOURSE-2022-31025 changed 2026-09-08 | Apache-2.0 |