# CVE-2022-31025: Invite bypasses user approval in Discourse

- Severity: Low 2.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.97%, higher than 63% of CVEs (2026-12-01)
- Published: 2022-06-03T14:35:12.000Z
- Modified: 2026-09-08T08:46:08.412Z
- Also known as: BIT-DISCOURSE-2022-31025, GHSA-x7jh-mx5q-6f9q
- Weaknesses: CWE-285
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- discourse discourse: < 2.8.4; >= 2.9.0.beta1, <= 2.9.0.beta4; before 2.8.4; 2.9.0
- discourse (Bitnami): before 2.8.4

## Every score

- GitHub_M: CVSS:3.1 2.6 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## 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

- CVE List: [CVE-2022-31025](https://www.cve.org/CVERecord?id=CVE-2022-31025), CVE Terms of Use, modified 2025-04-23
- NVD: [CVE-2022-31025](https://nvd.nist.gov/vuln/detail/CVE-2022-31025), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-DISCOURSE-2022-31025](https://osv.dev/vulnerability/BIT-DISCOURSE-2022-31025), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-31025 · Whole record: https://cve.day/CVE-2022-31025.json · Rebuilt by cve.day 2026-11-25T22:58:12.139Z
