Catégories
CVE-2026-67327 high CVSS 8.3

Contournement d'authentification dans better-auth (CVE-2026-67327)

Résumé

Contournement d'authentification dans better-auth (CVE-2026-67327). Des informations confidentielles peuvent être exposées. Atténuation : mise à jour vers 1.7.0-beta.10 ou plus.

Description d'origine

La description telle que publiée par la source (souvent en anglais).

Am I affected

You are affected if all of the following hold:

  • You run a better-auth version below 1.6.22, or a 1.7.0-beta below 1.7.0-beta.10.
  • You enable the magic-link plugin or the email-OTP plugin.
  • You also enable email and password sign-up with open registration.
  • An account can exist at an address before its owner first signs in with the passwordless flow.

Summary

An attacker can keep password access to a victim's account after the victim starts using it. The attack runs in three steps. First, with open registration, the attacker signs up using the victim's email and a password the attacker picks. The account stays unverified, so the attacker cannot use it yet. Later the real owner signs in with a magic link or an email OTP. That step marks the account verified, and the attacker's password now works on it.

Details

When an account already exists for an address, magic-link verification and email-OTP sign-in both sign in to that account. They mark it verified and issue a session. Before the fix, neither one removed a password set while the account was still unverified. Neither one revoked existing sessions. So a password set before anyone proved control of the mailbox kept working after the owner proved control.

This is a pre-account-hijacking weakness. It is the same class as the OAuth advisory GHSA-g38m-r43w-p2q7, applied to the passwordless email flows. Requiring email verification does not stop it. The verification step is the exact moment…

Source: NIST National Vulnerability Database NVD GitHub Advisory

Résumé généré automatiquement

Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.

Une vulnérabilité référencée CVE-2026-67327 a été découverte dans better-auth.
Des informations confidentielles peuvent être exposées. Score CVSS : 8.3/10.
Action : mettez à jour better-auth vers 1.7.0-beta.10 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « better-auth CVE-2026-67327 » sur le site de l'éditeur.

CVE-2026-67327 (better-auth) — CWE-287 / CVSS v3 8.3
Vecteur d'attaque : distant (réseau) / non authentifié
Correctif : 1.7.0-beta.10 — appliquer immédiatement
Contournement : If you cannot upgrade right away, you can lower the risk in two ways.
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.

❓ Quel est le problème

Une contournement d'authentification (CWE-287) affecte better-auth.

📍 Périmètre concerné

Consultez l'avis de l'éditeur pour les versions affectées de better-auth.

🔥 Gravité

Gravité : Élevée (CVSS 8.3/10). Des informations confidentielles peuvent être exposées.

🔧 Comment corriger

Mettre à jour vers 1.7.0-beta.10.

🛡️ Contournement

Contournement : If you cannot upgrade right away, you can lower the risk in two ways.

🔍 Détection

Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.

Actions de réponse

Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre

  1. 1
    Identify exposure identify
    grep -r 'better-auth' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で better-auth を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply temporary workaround mitigate
    If you cannot upgrade right away, you can lower the risk in two ways.

    パッチが適用されるまでの応急処置として、If you cannot upgrade right away, you can lower the risk in two ways. を実施。回避策の副作用 (機能低下) を確認した上で。

  3. 3
    Apply patch patch
    Upgrade better-auth to 1.7.0-beta.10

    ステージング環境で 1.7.0-beta.10 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  4. 4
    Post-deployment verification verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Paquets affectés

npm better-auth
[{"type":"SEMVER","events":[{"introduced":"1.7.0-beta.0"},{"fixed":"1.7.0-beta.10"}]}]

Références

Nous utilisons des cookies pour l'analyse d'audience et la mesure publicitaire. Ce réglage s'applique à tous les sites de Game co., Ltd. En savoir plus