{"id":"CVE-2022-31025","aliases":["CVE-2022-31025","BIT-DISCOURSE-2022-31025","GHSA-x7jh-mx5q-6f9q"],"related":[],"kind":"vulnerability","state":"published","title":"Invite bypasses user approval in Discourse","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"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","source":"nvd"},{"lang":"en","text":"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.","format":"markdown","source":"bitnami"}],"published":"2022-06-03T14:35:12.000Z","modified":"2026-09-08T08:46:08.412Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N","score":2.6,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N","score":2.6,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-285"],"affected":[{"ranges":[{"version":"< 2.8.4","status":"affected"},{"version":">= 2.9.0.beta1, <= 2.9.0.beta4","status":"affected"}],"vendor":"discourse","product":"discourse","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"2.8.4"},{"status":"affected","version":"2.9.0"},{"status":"affected","version":"2.9.0"},{"status":"affected","version":"2.9.0"},{"status":"affected","version":"2.9.0"}],"vendor":"discourse","product":"discourse","cpe":"cpe:2.3:a:discourse:discourse:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.8.4"}],"ecosystem":"Bitnami","package":"discourse","purl":"pkg:bitnami/discourse","source":"bitnami"}],"references":[{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-x7jh-mx5q-6f9q","tags":["advisory","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/discourse/discourse/pull/16974","tags":["advisory","patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/discourse/discourse/pull/16984","tags":["advisory","patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/discourse/discourse/commit/0fa0094531efc82d9371f90a02aa804b176d59cf","tags":["advisory","patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/discourse/discourse/commit/7c4e2d33fa4b922354c177ffc880a2f2701a91f9","tags":["advisory","patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31025","tags":["web"],"sources":["bitnami"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T14:06:08.844Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-31025","url":"https://www.cve.org/CVERecord?id=CVE-2022-31025","licence":"CVE Terms of Use","modified":"2025-04-23T18:19:28.063Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-31025","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31025","licence":"Public domain","modified":"2026-06-17T04:44:37.883Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DISCOURSE-2022-31025","url":"https://osv.dev/vulnerability/BIT-DISCOURSE-2022-31025","licence":"Apache-2.0","modified":"2026-09-08T08:46:08.412Z"}],"updatedAt":"2026-11-25T22:58:12.139Z","epss":{"score":0.00975,"percentile":0.63091,"date":"2026-12-01T12:00:22.000Z"}}