CVE-2022-31025 json
Invite bypasses user approval in Discourse
published 2022-06-03 4 y ago modified 2026-09-08 2 mo ago also BIT-discourse-2022-31025 , EUVD-2022-52720 , GHSA-x7jh-mx5q-6f9q
- cvss
- 2.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 63%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami discourse 2.8.4
- discourse discourse 2.8.4
- github.com/discourse/discourse@0fa0094 commit
- github.com/discourse/discourse@7c4e2d3 commit
- github.com/discourse/discourse#16974 pull request
- github.com/discourse/discourse#16984 pull request
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
1.00% chance of exploitation in the next 30 days, higher than 63% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 2.6 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
| OSV | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | discourse | <2.8.4 |
2.8.4 |
Affected products
- discourse discourse
Classification
- Weakness
-
- CWE-285 Improper Authorization
References
-
github.com
/discourse/discourse/pull/16974
patch, third-party-advisory, advisory
-
github.com
/discourse/discourse/pull/16984
patch, third-party-advisory, advisory
-
github.com
/discourse/discourse/commit/0fa0094531efc82d9371f90a02aa804b176d59cf
patch, third-party-advisory, advisory
-
github.com
/discourse/discourse/commit/7c4e2d33fa4b922354c177ffc880a2f2701a91f9
patch, third-party-advisory, advisory
-
github.com
/discourse/discourse/security/advisories/GHSA-x7jh-mx5q-6f9q
third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31025
web
Sources
- CVE List CVE-2022-31025
- NVD CVE-2022-31025
- OSV BIT-discourse-2022-31025
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.