Medium severity · published Jun 7, 2022
CVE-2022-31025
Discourse is an open source platform for community discussion
5.3
CVSS
1%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.0% · higher than 63% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DI
Discourse · Discourse
before 2.8.4; 2.9.0; 2.9.0; 2.9.0; 2.9.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-31025
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-31025
Patch
https://github.com/discourse/discourse/commit/0fa0094531efc82d9371f90a02aa804b176d59cf
Patch
https://github.com/discourse/discourse/commit/7c4e2d33fa4b922354c177ffc880a2f2701a91f9
Patch
https://github.com/discourse/discourse/pull/16974
Patch
https://github.com/discourse/discourse/pull/16984
Third Party Advisory
https://github.com/discourse/discourse/security/advisories/GHSA-x7jh-mx5q-6f9q
More from Discourse
9.9
CVE-2025-68662
FinalDestination hostname matching allows SSRF protection bypass
9.8
CVE-2025-53102
Discourse's WebAuthn challenge isn't cleared from user session after authentication
9.8
CVE-2025-48877
Discourse is an open-source discussion platform
9.8
CVE-2023-47121
Discourse is an open source platform for community discussion
9.8
CVE-2021-41163
Discourse is an open source platform for community discussion
