{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-31025","published":"2022-06-07T15:15:09.877000Z","last_modified":"2026-06-17T04:44:37.883000Z","status":"Modified","cvss":{"version":"3.1","score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-285"],"cpes":[{"criteria":"cpe:2.3:a:discourse:discourse:*:*:*:*:*:*:*:*","part":"a","vendor":"discourse","product":"discourse","version_end_excluding":"2.8.4"},{"criteria":"cpe:2.3:a:discourse:discourse:2.9.0:beta1:*:*:*:*:*:*","part":"a","vendor":"discourse","product":"discourse","version":"2.9.0"},{"criteria":"cpe:2.3:a:discourse:discourse:2.9.0:beta2:*:*:*:*:*:*","part":"a","vendor":"discourse","product":"discourse","version":"2.9.0"},{"criteria":"cpe:2.3:a:discourse:discourse:2.9.0:beta3:*:*:*:*:*:*","part":"a","vendor":"discourse","product":"discourse","version":"2.9.0"},{"criteria":"cpe:2.3:a:discourse:discourse:2.9.0:beta4:*:*:*:*:*:*","part":"a","vendor":"discourse","product":"discourse","version":"2.9.0"}],"cpes_truncated":false,"vendors":["discourse"],"products":["discourse/discourse"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.01021,"percentile":0.62571,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":47,"links":{"html_es":"/es/cve/CVE-2022-31025/","html_en":"/en/cve/CVE-2022-31025/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-31025","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-31025"},"untrusted":{"vendor_name":"Discourse","product_name":"Discourse","desc_en":"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.","affected":[{"untrusted_vendor":"discourse","untrusted_product":"discourse","versions":[]}],"references":[{"url":"https://github.com/discourse/discourse/commit/0fa0094531efc82d9371f90a02aa804b176d59cf","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/discourse/discourse/commit/7c4e2d33fa4b922354c177ffc880a2f2701a91f9","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/discourse/discourse/pull/16974","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/discourse/discourse/pull/16984","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-x7jh-mx5q-6f9q","tags":["Third Party Advisory"]}]}}