Logto
Logto: ReDoS via unescaped user input in email subaddressing regex (blockSubaddressing)
Logto is the modern, open-source auth infrastructure for SaaS and AI apps. Prior to 1.41.0, Logto's email subaddressing blocklist in packages/core/src/libraries/sign-in-experience/email-blocklist-policy.ts used the attacker-controlled domain from email input to construct subaddressingRegex when blockSubaddressing was enabled. The permissive emailRegEx accepted multiple at signs and regular expression metacharacters, and POST /api/experience/verification/verification-code could therefore cause catastrophic backtracking in subaddressingRegex.test(email). The resulting event-loop stall could make authentication, token issuance, SSO, and the administrative console unavailable. This issue is fixed in version 1.41.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.41.0
Fixed in 1.41.0
Mitigation
Upgrade logto to 1.41.0 or later.
References
- Vendor advisory github.com/logto-io/logto/security/advisories/…
- Patch github.com/logto-io/logto/pull/9106
- Patch github.com/logto-io/logto/commit/021381237511b…
1 more
- Release notes github.com/logto-io/logto/releases/tag/v1.41.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.