8.8
CWE
287
Advisory Published
Updated

CVE-2022-21684: User can bypass approval when invited to Discourse

First published: Thu Jan 13 2022(Updated: )

Discourse is an open source discussion platform. Versions prior to 2.7.13 in `stable`, 2.8.0.beta11 in `beta`, and 2.8.0.beta11 in `tests-passed` allow some users to log in to a community before they should be able to do so. A user invited via email to a forum with `must_approve_users` enabled is going to be automatically logged in, bypassing the check that does not allow unapproved users to sign in. They will be able to do everything an approved user can do. If they logout, they cannot log back in. This issue is patched in the `stable` version 2.7.13, `beta` version 2.8.0.beta11, and `tests-passed` version 2.8.0.beta11. One may disable invites as a workaround. Administrators can increase `min_trust_level_to_allow_invite` to reduce the attack surface to more trusted users.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Discourse<2.7.13
Discourse=2.8.0-beta1
Discourse=2.8.0-beta10
Discourse=2.8.0-beta2
Discourse=2.8.0-beta3
Discourse=2.8.0-beta4
Discourse=2.8.0-beta5
Discourse=2.8.0-beta6
Discourse=2.8.0-beta7
Discourse=2.8.0-beta8
Discourse=2.8.0-beta9

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2022-21684?

    CVE-2022-21684 has a medium severity rating due to improper user approval flow.

  • How do I fix CVE-2022-21684?

    To fix CVE-2022-21684, update Discourse to version 2.7.13 or later in the stable branch and 2.8.0-beta11 or later in the beta branches.

  • What versions of Discourse are affected by CVE-2022-21684?

    CVE-2022-21684 affects Discourse versions prior to 2.7.13 in stable, and all beta versions before 2.8.0-beta11.

  • What kind of vulnerability is CVE-2022-21684?

    CVE-2022-21684 is a vulnerability that allows certain users to log in to the forum before they have been approved.

  • Who is impacted by CVE-2022-21684?

    Anyone who is invited via email to the forum with user approval requirements may be impacted by CVE-2022-21684.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203