Description
Typebot is an open-source chatbot builder. In self-hosted versions up to and including 3.17.1, the default passwordless email magic-link authentication is vulnerable to login-code brute forcing that leads to account takeover. The email provider overrides NextAuth's default cryptographically secure token with a 6-digit code generated using Math.random(), reducing the keyspace to 900,000 with a 10-minute expiry, and the code itself is the raw value placed in the magic link. The verification callback enforces no attempt limit, lockout, or CSRF protection, and an incorrect guess does not consume the real code because the adapter returns null on a not-found token, so a valid code survives unlimited guessing within its lifetime. The only rate limiter applies to the code-sending path and is keyed on the client-controlled X-Forwarded-For header, allowing an attacker to request many concurrent live codes for one victim and further raise the odds of a matching guess. As a result, an anonymous attacker who knows a victim's email address can brute-force the callback and obtain an authenticated session as that user with no victim interaction, gaining full access to the victim's bots, results, and connected integration credentials. Deployments configured for OAuth or SSO only, with no email provider, are not affected. This issue is fixed in version 3.18.0
Published: 2026-08-25
Score: 9.1 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is tied to the passwordless email authentication in self‑hosted TypeBot versions through 3.17.1. The email provider replaces NextAuth’s cryptographic token with a simple 6‑digit number generated by Math.random(), which reduces the keyspace to 900,000 and sets a 10‑minute expiration. No attempt limit, lockout, CSRF protection, or code consumption on incorrect guesses allows unlimited brute‑forcing. The attacker only needs the target email and can obtain a valid authenticated session by guessing the correct code. This leads to full access to bots, results, and connected integrations for the compromised account.

Affected Systems

The affected product is the open‑source TypeBot chatbot builder, specifically self‑hosted deployments up to and including version 3.17.1. Any instance using passwordless magic‑link authentication with an overridden token is vulnerable; configurations that rely exclusively on OAuth or SSO are unaffected.

Risk and Exploitability

The CVSS score of 9.1 indicates high severity. The EPSS score is unavailable, so the exact probability of widespread exploitation cannot be quantified here. The vulnerability is not listed in the CISA Knowledge Exploited Vulnerabilities catalog. The attack vector is remote and requires only the victim’s email address. Because the code sending endpoint is limited only by an IP address supplied via X‑Forwarded‑For, an attacker can generate many active codes for the victim in parallel, dramatically increasing the chance of a successful guess. An attacker gains full account privileges without any victim interaction.

Generated by OpenCVE AI on August 26, 2026 at 01:25 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to typebot.io version 3.18.0 or later, which restores cryptographically secure token generation and fixes the brute‑force issue.
  • If an upgrade is not immediately possible, disable passwordless magic‑link authentication or replace it with a more secure authentication flow that includes rate limiting, lockout, and CSRF protection.
  • Implement application‑level rate limiting on the code‑delivery route and enforce strict validation of the X‑Forwarded‑For header to prevent abuse of the keyspace expansion.
  • Verify that the email provider does not override the token with a Math.random() value and that token verification uses a cryptographically signed scheme.

Generated by OpenCVE AI on August 26, 2026 at 01:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 26 Aug 2026 02:15:00 +0000

Type Values Removed Values Added
First Time appeared Baptistearno
Baptistearno typebot.io
Vendors & Products Baptistearno
Baptistearno typebot.io

Tue, 25 Aug 2026 22:00:00 +0000

Type Values Removed Values Added
Description Typebot is an open-source chatbot builder. In self-hosted versions up to and including 3.17.1, the default passwordless email magic-link authentication is vulnerable to login-code brute forcing that leads to account takeover. The email provider overrides NextAuth's default cryptographically secure token with a 6-digit code generated using Math.random(), reducing the keyspace to 900,000 with a 10-minute expiry, and the code itself is the raw value placed in the magic link. The verification callback enforces no attempt limit, lockout, or CSRF protection, and an incorrect guess does not consume the real code because the adapter returns null on a not-found token, so a valid code survives unlimited guessing within its lifetime. The only rate limiter applies to the code-sending path and is keyed on the client-controlled X-Forwarded-For header, allowing an attacker to request many concurrent live codes for one victim and further raise the odds of a matching guess. As a result, an anonymous attacker who knows a victim's email address can brute-force the callback and obtain an authenticated session as that user with no victim interaction, gaining full access to the victim's bots, results, and connected integration credentials. Deployments configured for OAuth or SSO only, with no email provider, are not affected. This issue is fixed in version 3.18.0
Title TypeBot: Account takeover via brute-forceable 6-digit magic-link code
Weaknesses CWE-307
CWE-330
References
Metrics cvssV4_0

{'score': 9.1, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Baptistearno Typebot.io
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-25T21:43:21.320Z

Reserved: 2026-07-14T21:10:50.032Z

Link: CVE-2026-62862

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-25T22:17:04.330

Modified: 2026-08-25T22:17:04.330

Link: CVE-2026-62862

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-26T02:00:04Z

Weaknesses
  • CWE-307

    Improper Restriction of Excessive Authentication Attempts

  • CWE-330

    Use of Insufficiently Random Values