{"id":"CVE-2022-31025","published":"2022-06-03T14:35:12Z","modified":"2025-04-23T18:19:28Z","title":"Invite bypasses user approval in Discourse","vendor":"discourse","product":"discourse","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.6,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00975,"percentile":0.62977,"provenance":"source"},"cwes":[{"id":"CWE-285","name":"Improper Authorization"}],"references":[{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-x7jh-mx5q-6f9q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/discourse/discourse/pull/16974","tags":["x_refsource_MISC"]},{"url":"https://github.com/discourse/discourse/pull/16984","tags":["x_refsource_MISC"]},{"url":"https://github.com/discourse/discourse/commit/0fa0094531efc82d9371f90a02aa804b176d59cf","tags":["x_refsource_MISC"]},{"url":"https://github.com/discourse/discourse/commit/7c4e2d33fa4b922354c177ffc880a2f2701a91f9","tags":["x_refsource_MISC"]}],"priority":{"score":14.4,"factors":[{"name":"EPSS percentile","points":12.6},{"name":"CVSS severity","points":1.82}]},"vendorSlug":"discourse","affectedVersions":[{"vendor":"discourse","product":"discourse","versions":["< 2.8.4",">= 2.9.0.beta1, <= 2.9.0.beta4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:06:08.844357Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-52720","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-discourse-cve-2022-21684","children":[{"from":"CVE-2022-31025","to":"CVE-2022-39385","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["app/controllers/session_controller.rb","app/models/invite_redeemer.rb"],"commits":["https://github.com/discourse/discourse/commit/0fa0094531efc82d9371f90a02aa804b176d59cf","https://github.com/discourse/discourse/commit/7c4e2d33fa4b922354c177ffc880a2f2701a91f9","https://github.com/discourse/discourse/commit/a414520742da8dc9dc976d4fb7b72dbd445813bb"],"basis":"shared function","functions":["self","send_welcome_message"]}]},{"from":"CVE-2022-31025","to":"CVE-2023-37904","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["app/models/invite_redeemer.rb"],"commits":["https://github.com/discourse/discourse/commit/0fa0094531efc82d9371f90a02aa804b176d59cf","https://github.com/discourse/discourse/commit/7c4e2d33fa4b922354c177ffc880a2f2701a91f9","https://github.com/discourse/discourse/commit/62a609ea2d0645a27ee8adbb01ce10a5e03a600b"],"basis":"rarely changed file"}]}]}}