npmWorst: Critical27 advisories

better-auth: known vulnerabilities

better-auth has 27 reviewed security advisories in the GitHub Advisory Database — 4 critical, 16 high, 3 moderate, 4 low. The most recent was published 2026-10-27. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the better-auth versions running across your servers, containers and images, and ranks what to patch first.

How to fix better-auth

Upgrade better-auth to a release at or above the fixed version shown for each advisory below. For npm:

npm install better-auth@1.7.7 (or run npm audit fix)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (27)

@better-auth/drizzle-adapter: Concurrent requests can exceed rate limits on PostgreSQL Low 3.7 CWE-307 CWE-362 — Affected: from 1.6.17 up to 1.7.7. Fixed in 1.7.7. Published 2026-10-27. GHSA-44jh-23m7-hpcf · CVE-2026-110861
better-auth: Device login approval does not show the requesting client or permissions High 8.1 CWE-451 — Affected: from 1.3.8-beta.3 up to 1.7.0-rc.3. Fixed in 1.7.0-rc.3. Published 2026-10-27. GHSA-q84f-53jg-9ppm · CVE-2026-109346
better-auth: OAuth Proxy lets an attacker sign in as another user High 7.4 CWE-287 CWE-345 — Affected: from 1.5.0-beta.12 up to 1.7.7. Fixed in 1.7.7. Published 2026-10-27. GHSA-r4xp-prcw-77qf · CVE-2026-110864
better-auth: OAuth state can be used as a Magic Link to sign in as another user Critical 9.1 CWE-287 — Affected: from 1.4.0-beta.18 up to 1.7.7. Fixed in 1.7.7. Published 2026-10-22. GHSA-965c-763c-88jm · CVE-2026-110862
Duplicate Advisory: better-auth has an external request basePath modification DoS Critical 5.9 CWE-770 — Affected: before 1.4.2. Fixed in 1.4.2. Published 2026-08-02. GHSA-3q45-2fh7-66cj
Better Auth: Account takeover via pre-account hijacking on magic-link and email-OTP sign-in High 8.3 CWE-287 CWE-345 — Affected: from 1.7.0-beta.0 up to 1.7.0-beta.10. Fixed in 1.7.0-beta.10. Published 2026-07-24. GHSA-qq9h-g4jm-xgf3 · CVE-2026-67327
Better Auth: OAuth refresh-token rotation forks the token family on concurrent redemption High 8.1 CWE-294 CWE-362 CWE-367 CWE-613 — Affected: from 1.4.8-beta.7 up to 1.6.0. Fixed in 1.6.0. Published 2026-07-15. GHSA-392p-2q2v-4372 · CVE-2026-53517
@better-auth/oauth-provider's OAuth authorization-code grant allows concurrent redemption when two token requests race the find-then-delete primitive High 8.1 CWE-294 CWE-362 CWE-367 — Affected: before 1.6.11. Fixed in 1.6.11. Published 2026-07-15. GHSA-7w99-5wm4-3g79 · CVE-2026-53518
Better Auth vulnerable to unauthorized invitation acceptance via unverified email match in organization plugin High 7.7 CWE-287 CWE-345 CWE-441 CWE-862 — Affected: before 1.6.11. Fixed in 1.6.11. Published 2026-07-15. GHSA-fmh4-wcc4-5jm3 · CVE-2026-53514
Better Auth has an account takeover issue via OAuth auto-link to unverified pre-registered email High 8.3 CWE-287 CWE-345 — Affected: before 1.6.11. Fixed in 1.6.11. Published 2026-07-15. GHSA-g38m-r43w-p2q7 · CVE-2026-53516
Better Auth: OAuth refresh-token replay via missing client authentication on oidc-provider and mcp plugins Critical 9.1 CWE-287 CWE-306 CWE-345 CWE-863 — Affected: before 1.6.11. Fixed in 1.6.11. Published 2026-07-15. GHSA-pw9m-5jxm-xr6h · CVE-2026-53512
Better Auth: Stale sessions persist after user deletion across admin, anonymous, and SCIM flows Low 3.8 CWE-459 CWE-613 CWE-672 — Affected: from 0.3.4 up to 1.6.11. Fixed in 1.6.11. Published 2026-07-07. GHSA-2vg6-77g8-24mp · CVE-2026-67334
Better Auth has stored XSS in the auth-server origin via javascript: redirect_uri in oidc-provider and mcp High 7.7 CWE-601 CWE-79 — Affected: from 1.7.0-beta.0 up to 1.7.0-beta.4. Fixed in 1.7.0-beta.4. Published 2026-07-07. GHSA-86j7-9j95-vpqj · CVE-2026-67333
Better Auth has insecure cryptographic defaults in oidcProvider: alg=none advertised and plain PKCE accepted by default High 8.7 CWE-1188 CWE-327 CWE-757 — Affected: before 1.6.11. Fixed in 1.6.11. Published 2026-07-07. GHSA-9h47-pqcx-hjr4 · CVE-2026-67336
Better Auth: Device authorization approve and deny accept any authenticated session while the user code is pending High 7.6 CWE-285 CWE-345 CWE-639 CWE-863 — Affected: from 1.6.0 up to 1.6.11. Fixed in 1.6.11. Published 2026-06-04. GHSA-cq3f-vc6p-68fh · CVE-2026-45337
Better Auth: Rate limiter keys IPv6 addresses individually and is bypassable via prefix rotation High 7.3 CWE-307 — Affected: from 1.5.0-beta.1 up to 1.5.0-beta.9. Fixed in 1.5.0-beta.9. Published 2026-05-28. GHSA-p6v2-xcpg-h6xw · CVE-2026-45364
Better Auth: OAuth callback accepts mismatched `state` when cookie-backed state storage is used without PKCE Moderate 5.3 CWE-287 CWE-345 CWE-352 — Affected: before 1.6.2. Fixed in 1.6.2. Published 2026-05-15. GHSA-wxw3-q3m9-c3jr · CVE-2026-67335
Better Auth Has Two-Factor Authentication Bypass via Premature Session Caching (session.cookieCache) Critical CWE-288 — Affected: before 1.4.9. Fixed in 1.4.9. Published 2026-04-03. GHSA-xg6x-h9c9-2m83 · CVE-2026-67337
Better Auth's rou3 Dependency has Double-Slash Path Normalization which can Bypass disabledPaths Config and Rate Limits High 8.6 CWE-400 CWE-41 — Affected: before 1.4.5. Fixed in 1.4.5. Published 2025-12-16. GHSA-x732-6j76-qmhm · CVE-2025-71399
Better Auth affected by external request basePath modification DoS High CWE-73 CWE-770 — Affected: before 1.4.2. Fixed in 1.4.2. Published 2025-12-01. GHSA-569q-mpph-wgww · CVE-2025-71401
Better Auth's multi-session sign-out hook allows forged cookies to revoke arbitrary sessions Low CWE-287 CWE-345 — Affected: from 1.3.34 up to 1.4.0. Fixed in 1.4.0. Published 2025-11-26. GHSA-wmjr-v86c-m9jj · CVE-2025-71402
Better Auth: Unauthenticated API key creation through api-key plugin High 8.6 CWE-285 CWE-306 — Affected: before 1.3.26. Fixed in 1.3.26. Published 2025-10-09. GHSA-99h5-pjcv-gr6v · CVE-2025-61928
Better Auth Open Redirect Vulnerability in originCheck Middleware Affects Multiple Routes Low CWE-601 — Affected: before 1.2.10. Fixed in 1.2.10. Published 2025-07-07. GHSA-36rg-gfq2-3h56 · CVE-2025-53535
Beter Auth has an Open Redirect via Scheme-Less Callback Parameter Moderate CWE-601 — Affected: before 1.1.20. Fixed in 1.1.20. Published 2025-02-24. GHSA-hjpm-7mrm-26w8 · CVE-2025-27143
Better Auth allows bypassing the trustedOrigins Protection which leads to ATO High 7.1 CWE-601 — Affected: before 1.1.21. Fixed in 1.1.21. Published 2025-02-24. GHSA-vp58-j275-797x · CVE-2025-71403
Better Auth URL parameter HTML Injection (Reflected Cross-Site scripting) Moderate CWE-79 — Affected: from 0.0.2 up to 1.1.16. Fixed in 1.1.16. Published 2025-02-05. GHSA-9x4v-xfq5-m8x5 · CVE-2025-71404
Better Auth has an Open Redirect Vulnerability in Verify Email Endpoint High CWE-601 — Affected: before 1.1.6. Fixed in 1.1.6. Published 2024-12-30. GHSA-8jhw-6pjj-8723 · CVE-2024-56734

Find better-auth across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.