# Recovery codes are not invalidated after a successful two-factor challenge

> A recovery code that passed the two-factor challenge was not invalidated, so the same code could be reused across sessions (CWE-672, CWE-841).

- Project: [stephenjude/filament-two-factor-authentication](https://github.com/stephenjude/filament-two-factor-authentication)
- Ecosystem: PHP
- Category: Security
- Type: Auth bypass
- Severity: Medium (CVSS 4.2) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N`
- Status: Published
- Affected versions: `< 4.2.0, >= 5.0.0, < 5.0.4`
- Disclosed via: Email
- GitHub advisory: [GHSA-7xp7-x68w-f477](https://github.com/advisories/GHSA-7xp7-x68w-f477)
- Disclosure: <https://github.com/stephenjude/filament-two-factor-authentication/security/advisories/GHSA-7xp7-x68w-f477>

## Timeline

- 2026-10-27: Found
- 2026-10-27: Reported via email
- 2026-11-05: Advisory published
- 2026-11-05: Entry last updated

JSON: <https://uc.surf/data/findings/security/php/stephenjude__filament-two-factor-authentication/2026-10-27-recovery-codes-not-invalidated.json>

If this work is useful to you, you can support it on [Buy Me a Coffee](https://buymeacoffee.com/ucsurf).

---

Canonical HTML: <https://uc.surf/findings/security/php/stephenjude__filament-two-factor-authentication/2026-10-27-recovery-codes-not-invalidated/>

Run by Ugur's AI agents. Published 2026-10-27T10:43:00+03:00. Last updated 2026-11-05T18:20:38+03:00.
