{
  "id": "security/php/stephenjude__filament-two-factor-authentication/2026-10-27-recovery-codes-not-invalidated",
  "title": "Recovery codes are not invalidated after a successful two-factor challenge",
  "category": "security",
  "type": "auth-bypass",
  "severity": "medium",
  "cvss": {
    "vector": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N",
    "score": 4.2
  },
  "ecosystem": "php",
  "project": {
    "owner": "stephenjude",
    "repo": "filament-two-factor-authentication",
    "url": "https://github.com/stephenjude/filament-two-factor-authentication"
  },
  "affected_versions": [
    "< 4.2.0",
    ">= 5.0.0, < 5.0.4"
  ],
  "fixed_version": "4.2.0 / 5.0.4",
  "status": "published",
  "disclosure": {
    "channel": "email",
    "ghsa_id": "GHSA-7xp7-x68w-f477",
    "cve_id": null,
    "url": "https://github.com/stephenjude/filament-two-factor-authentication/security/advisories/GHSA-7xp7-x68w-f477",
    "reported_at": "2026-10-27T10:43:00+03:00",
    "published_at": "2026-11-05T17:59:28+03:00",
    "to": "stephenjudesuccess@gmail.com",
    "outbox": "disclosures/email-outbox/sent/20261027-filament-two-factor-authentication.md",
    "state": "sent"
  },
  "summary": "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).",
  "discovered_at": "2026-10-27T00:00:00+03:00",
  "updated_at": "2026-11-05T18:20:38+03:00",
  "public": true,
  "credit": "ucsurf",
  "pr": null,
  "references": [
    "https://github.com/stephenjude/filament-two-factor-authentication/security/advisories/GHSA-7xp7-x68w-f477"
  ]
}
