Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. better-auth
  4. ›
  5. GHSA-qq9h-g4jm-xgf3

GHSA-qq9h-g4jm-xgf3: Better Auth: Account takeover via pre-account hijacking on magic-link and email-OTP sign-in

July 24, 2026

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.

References

  • github.com/advisories/GHSA-qq9h-g4jm-xgf3
  • github.com/better-auth/better-auth/commit/c06a56d83a40bbaeac12d3a8b8b67e59f92a9110
  • github.com/better-auth/better-auth/pull/10239
  • github.com/better-auth/better-auth/releases/tag/v1.6.22
  • github.com/better-auth/better-auth/releases/tag/v1.7.0-beta.10
  • github.com/better-auth/better-auth/security/advisories/GHSA-qq9h-g4jm-xgf3

Code Behaviors & Features

Detect and mitigate GHSA-qq9h-g4jm-xgf3 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.1.3 before 1.6.22, all versions starting from 1.7.0-beta.0 before 1.7.0-beta.10

Fixed versions

  • 1.6.22
  • 1.7.0-beta.10

Solution

Upgrade to versions 1.6.22, 1.7.0-beta.10 or above.

Impact 8.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication
  • CWE-345: Insufficient Verification of Data Authenticity

Source file

npm/better-auth/GHSA-qq9h-g4jm-xgf3.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:18:34 +0000.