5.9medium
AnythingLLM: Password recovery accepts one recovery code twice after whitespace normalization
- Severity
- 5.9medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.27% (higher than 20% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
AnythingLLM is an application that turns pieces of content into context that any LLM can use as references during chatting. From 1.0.0 to 1.15.0, AnythingLLM's unauthenticated account-recovery flow in server/utils/PasswordRecovery/index.js uses recoverAccount() to deduplicate the raw recoveryCodes values before trimming them, so one valid code submitted twice with different surrounding whitespace can satisfy the two-code check. Each normalized value can also match the same stored hash instead of consuming a distinct hash. An attacker who knows the target username and one recovery code can call POST /api/system/recover-account in multi-user mode, receive a password-reset token, and use POST /api/system/reset-password to take over the account, including an administrator account.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Mintplex-Labs anything-llm | Affected versions >= 1.0.0, <= 1.15.0 | CVE List |
Classification
What each source says
CVE List
AnythingLLM is an application that turns pieces of content into context that any LLM can use as references during chatting. From 1.0.0 to 1.15.0, AnythingLLM's unauthenticated account-recovery flow in server/utils/PasswordRecovery/index.js uses recoverAccount() to deduplicate the raw recoveryCodes values before trimming them, so one valid code submitted twice with different surrounding whitespace can satisfy the two-code check. Each normalized value can also match the same stored hash instead of consuming a distinct hash. An attacker who knows the target username and one recovery code can call POST /api/system/recover-account in multi-user mode, receive a password-reset token, and use POST /api/system/reset-password to take over the account, including an administrator account.
NVD (es)
AnythingLLM es una aplicación que convierte fragmentos de contenido en contexto que cualquier LLM puede usar como referencias durante el chat. De 1.0.0 a 1.15.0, el flujo de recuperación de cuenta no autenticado de AnythingLLM en server/utils/PasswordRecovery/index.js usa recoverAccount() para desduplicar los valores brutos de recoveryCodes antes de recortarlos, de modo que un código válido enviado dos veces con espacios en blanco circundantes diferentes puede satisfacer la verificación de dos códigos. Cada valor normalizado también puede coincidir con el mismo hash almacenado en lugar de consumir un hash distinto. Un atacante que conoce el nombre de usuario objetivo y un código de recuperación puede llamar a POST /api/system/recover-account en modo multiusuario, recibir un token de restablecimiento de contraseña y usar POST /api/system/reset-password para tomar el control de la cuenta, incluida una cuenta de administrador.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-72917 changed 2026-08-12 | CVE Terms of Use |
| NVD | CVE-2026-72917 changed 2026-10-24 | Public domain |