LiveActive security incident?Get immediate response
CVE Record

CVE-2022-31025: Invite bypasses user approval in Discourse

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.

LowCVSS 2.6Not KEV-listedUpdated
Glexia's TakeAutomated analysislow

Security readout for executives and security teams

Plain-English summary

A Discourse site using SSO and manual user approval could unintentionally let invited accounts become approved, weakening account gatekeeping. The documented impact is limited to integrity of user admission, not data theft or outage. Upstream fixed it in 2.8.4 stable and 2.9.0.beta5 beta/tests-passed.

Executive priority

Low urgency for most organizations, but prioritize if Discourse is used for private communities, customer support, partner portals, or regulated collaboration where membership approval is a control. Patch during the next normal maintenance window unless account admission is business-critical.

Technical view

CVE-2022-31025 is a CWE-285 authorization flaw in Discourse invite handling. Before the fixed versions, sites using single sign-on could bypass the must_approve_users check through invites, and staff-created invites were automatically approved. CVSS 3.1 is 2.6 with network access, low privileges, user interaction, and low integrity impact.

Likely exposure

Exposure is limited to Discourse deployments running vulnerable stable or beta versions, using SSO, and relying on must_approve_users for account approval. Sites with invites disabled or restricted to higher-trust users have reduced exposure. Non-Discourse systems are not identified as affected in the provided sources.

Exploitation context

The source bundle does not report active exploitation, and the CVE is not marked KEV. Exploitation requires conditions around SSO, invites, and user approval, with low privileges and user interaction reflected in the CVSS vector. Treat this as an access-control weakness, not a remote takeover issue.

Researcher notes

The key validation path is configuration-dependent: vulnerable version plus SSO plus approval-gated registration plus invite capability. Evidence supports patch versions and workarounds, but the bundle does not include proof of exploitation or broader product impact. Avoid assuming confidentiality or availability consequences beyond the published CVSS scope.

Mitigation direction

  • Upgrade Discourse stable to 2.8.4 or later.
  • Upgrade beta/tests-passed deployments to 2.9.0.beta5 or later.
  • If patching is delayed, disable invites where operationally acceptable.
  • Alternatively increase min_trust_level_to_allow_invite to restrict invite capability.
  • Review vendor advisory before applying environment-specific controls.

Validation and detection

  • Inventory Discourse version and release channel across all deployments.
  • Confirm whether SSO and must_approve_users are enabled together.
  • Check invite settings, especially invite availability and minimum trust level.
  • Verify staff invite workflows after upgrading in a test environment.
  • Review user creation logs for unexpected invite-approved accounts.
Prepared
Confidence
high
Sources
7

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-285: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-31025 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Low
CVSS
2.6 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
6Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
2.6CVSS 3.1LowCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N1.21.4Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

2.6Low
CVSS 3.1 vector shape for CVE-2022-31025Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
discoursediscourse< 2.8.4, >= 2.9.0.beta1, <= 2.9.0.beta4Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-285 · source CWE mapping

Improper Authorization

Improper Authorization represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.