{"api_version":"1","generated_at":"2026-07-25T02:21:24+00:00","cve":"CVE-2022-31025","urls":{"html":"https://cve.report/CVE-2022-31025","api":"https://cve.report/api/cve/CVE-2022-31025.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-31025","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-31025"},"summary":{"title":"CVE-2022-31025","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-06-07 15:15:00","updated_at":"2023-07-21 17:09:00"},"problem_types":["NVD-CWE-Other"],"metrics":[],"references":[{"url":"https://github.com/discourse/discourse/commit/7c4e2d33fa4b922354c177ffc880a2f2701a91f9","name":"https://github.com/discourse/discourse/commit/7c4e2d33fa4b922354c177ffc880a2f2701a91f9","refsource":"MISC","tags":[],"title":"SECURITY: Remove auto approval when redeeming an invite (#16974) · discourse/discourse@7c4e2d3 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/discourse/discourse/pull/16974","name":"https://github.com/discourse/discourse/pull/16974","refsource":"MISC","tags":[],"title":"SECURITY: Remove auto approval when redeeming an invite by gschlager · Pull Request #16974 · discourse/discourse · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-x7jh-mx5q-6f9q","name":"https://github.com/discourse/discourse/security/advisories/GHSA-x7jh-mx5q-6f9q","refsource":"CONFIRM","tags":[],"title":"Invite bypasses user approval · Advisory · discourse/discourse · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/discourse/discourse/pull/16984","name":"https://github.com/discourse/discourse/pull/16984","refsource":"MISC","tags":[],"title":"FIX: Approves user when redeeming an invite for invites only sites by tgxworld · Pull Request #16984 · discourse/discourse · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/discourse/discourse/commit/0fa0094531efc82d9371f90a02aa804b176d59cf","name":"https://github.com/discourse/discourse/commit/0fa0094531efc82d9371f90a02aa804b176d59cf","refsource":"MISC","tags":[],"title":"FIX: Approves user when redeeming an invite for invites only sites (#… · discourse/discourse@0fa0094 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-31025","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31025","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"31025","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"discourse","cpe5":"discourse","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"31025","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"discourse","cpe5":"discourse","cpe6":"2.9.0","cpe7":"beta1","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"31025","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"discourse","cpe5":"discourse","cpe6":"2.9.0","cpe7":"beta2","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"31025","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"discourse","cpe5":"discourse","cpe6":"2.9.0","cpe7":"beta3","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"31025","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"discourse","cpe5":"discourse","cpe6":"2.9.0","cpe7":"beta4","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-31025","STATE":"PUBLIC","TITLE":"Invite bypasses user approval in Discourse"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"discourse","version":{"version_data":[{"version_value":"< 2.8.4"},{"version_value":">= 2.9.0.beta1, <= 2.9.0.beta4"}]}}]},"vendor_name":"discourse"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":2.6,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-285: Improper Authorization"}]}]},"references":{"reference_data":[{"name":"https://github.com/discourse/discourse/security/advisories/GHSA-x7jh-mx5q-6f9q","refsource":"CONFIRM","url":"https://github.com/discourse/discourse/security/advisories/GHSA-x7jh-mx5q-6f9q"},{"name":"https://github.com/discourse/discourse/pull/16974","refsource":"MISC","url":"https://github.com/discourse/discourse/pull/16974"},{"name":"https://github.com/discourse/discourse/pull/16984","refsource":"MISC","url":"https://github.com/discourse/discourse/pull/16984"},{"name":"https://github.com/discourse/discourse/commit/0fa0094531efc82d9371f90a02aa804b176d59cf","refsource":"MISC","url":"https://github.com/discourse/discourse/commit/0fa0094531efc82d9371f90a02aa804b176d59cf"},{"name":"https://github.com/discourse/discourse/commit/7c4e2d33fa4b922354c177ffc880a2f2701a91f9","refsource":"MISC","url":"https://github.com/discourse/discourse/commit/7c4e2d33fa4b922354c177ffc880a2f2701a91f9"}]},"source":{"advisory":"GHSA-x7jh-mx5q-6f9q","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-06-07 15:15:00","lastModifiedDate":"2023-07-21 17:09:00","problem_types":["NVD-CWE-Other"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM"},"exploitabilityScore":3.9,"impactScore":1.4},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:discourse:discourse:2.9.0:beta1:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:discourse:discourse:2.9.0:beta2:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:discourse:discourse:2.9.0:beta3:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:discourse:discourse:*:*:*:*:*:*:*:*","versionEndExcluding":"2.8.4","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:discourse:discourse:2.9.0:beta4:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}