CVE-2023-39522: Username enumeration attack in goauthentik

Published Aug 29, 2023
·
Updated

Summary Using a recovery flow with an identification stage an attacker is able to determine if a username exists.

Impact Only setups configured with a recovery flow are impacted by this. Anyone with a user account on a system with the recovery flow described above is susceptible to having their username/email revealed as existing.

Details

An attacker can easily enumerate and check users' existence using the recovery flow, as a clear message is shown when a user doesn't exist. Depending on configuration this can either be done by username, email, or both.

The invalid and valid usernames should both show the same message and always send an email. Article for reference here: https://postmarkapp.com/guides/password-reset-email-best-practices#how-to-make-sure-your-password-reset-emails-are-secure

For more information

If you have any questions or comments about this advisory:

- Email us at security@goauthentik.io

Other sources

goauthentik is an open-source Identity Provider. In affected versions using a recovery flow with an identification stage an attacker is able to determine if a username exists. Only setups configured with a recovery flow are impacted by this. Anyone with a user account on a system with the recovery flow described above is susceptible to having their username/email revealed as existing. An attacker can easily enumerate and check users' existence using the recovery flow, as a clear message is shown when a user doesn't exist. Depending on configuration this can either be done by username, email, or both. This issue has been addressed in versions 2023.5.6 and 2023.6.2. Users are advised to upgrade. There are no known workarounds for this issue.

MITRE

Affected Software

4 affected componentsFixes available
npm/@goauthentik/api<2023.5.6
2023.5.6
npm/@goauthentik/api>=2023.6.0<2023.6.2
2023.6.2
goauthentik Authentik<2023.5.6
goauthentik Authentik>=2023.6.0<2023.6.2

Event History

Aug 29, 2023
CVE Published
via MITRE·05:23 PM
Data Sourced
via MITRE·05:23 PM
DescriptionSeverityWeakness
Advisory Published
11:34 PM

Frequently Asked Questions

1

What is CVE-2023-39522?

CVE-2023-39522 is a vulnerability in goauthentik, an open-source Identity Provider, that allows an attacker to determine if a username exists through a recovery flow with an identification stage.

2

What is the impact of CVE-2023-39522?

The impact of CVE-2023-39522 is limited to setups configured with a recovery flow. Users with a user account on a system with the described recovery flow are susceptible to having their username determined by an attacker.

3

Which software versions are affected by CVE-2023-39522?

Versions up to and excluding 2023.5.6 of the @goauthentik/api npm package and versions between 2023.6.0 and 2023.6.2 of the Goauthentik Authentik package are affected by CVE-2023-39522.

4

What is the severity of CVE-2023-39522?

CVE-2023-39522 has a severity score of 5.3, which is considered medium.

5

How can CVE-2023-39522 be fixed?

To fix CVE-2023-39522, ensure that you are using version 2023.5.6 or later of the @goauthentik/api npm package or version 2023.6.2 or later of the Goauthentik Authentik package.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203