Skip to main content

better-auth EUVDEUVD-2025-210584

| CVE-2025-71402 LOW
Improper Verification of Cryptographic Signature (CWE-347)
2026-08-01 VulnCheck GHSA-rf63-989x-x4x8
2.0
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to application with valid account
  2. Delivery
    Identify target session token IDs to revoke
  3. Exploit
    Craft forged _multi-* cookie with victim session identifiers
  4. Execution
    Submit POST to /sign-out endpoint with crafted cookie
  5. Persist
    After-hook forwards unverified values to deleteSessions()
  6. Impact
    Victim sessions revoked without authorization

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Signature verification
Exploitation Conditions

Exploitation requires all of the following: (1) the better-auth multi-session plugin must be explicitly enabled in the application - it is not active by default, and applications not using this plugin are entirely unaffected; (2) the attacker must hold a valid authenticated session with the application sufficient to reach the /sign-out endpoint (the CVSS 4.0 vector rates this PR:H, though the advisory description implies any authenticated session may suffice - verify with the vendor); (3) the target application must be running better-auth version 1.3.34 through <1.4.0; and (4) the attacker must supply session token IDs belonging to other users, which may require prior discovery through separate means. No code execution, privilege escalation, or data exfiltration is possible through this path - impact is limited to unauthorized session deletion. Applications running better-auth ≥1.4.0 or those that have never enabled the multi-session plugin are not affected.

Impact

The provided CVSS 4.0 score of 2.0 is low, driven by PR:H (high privileges required), AT:P (specific attack requirement: multi-session plugin must be enabled), and UI:P (passive user interaction - a victim session must exist to be revoked). Real-world risk is context-dependent: applications using better-auth's multi-session plugin face a meaningful, low-complexity session-disruption vector - an authenticated attacker can systematically revoke other users' sessions, creating a denial-of-service against account accessibility without exploiting any race condition or complex gadget chain. No EPSS data was supplied in this dataset, and the flaw is absent from the CISA KEV catalog, indicating no known active exploitation at time of analysis. The low base score reflects genuine access-gating (requires a valid session and explicit plugin use), but defenders in authentication-sensitive contexts (financial, admin, healthcare) should treat this as an elevated priority because session integrity is a foundational control. The CVSS 4.0 PR:H rating is inconsistent with the description, which implies only a regular authenticated session is needed; this discrepancy should be verified against the vendor fix before making risk classification decisions.

Exploit ScenarioDerived

An attacker holding a valid better-auth account crafts an HTTP sign-out request to the application's /sign-out endpoint with a forged _multi-* cookie whose value contains the session token IDs of other currently authenticated users. Because the multi-session after-hook passes these values to internalAdapter.deleteSessions() without signature verification, the targeted sessions are immediately revoked, signing the victims out without their knowledge. If the attacker can enumerate or predict session token IDs through other means, they could perform a sweeping session-invalidation attack against the user base.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 01, 2026

Session revocation via forged cookies in better-auth's multi-session plugin (npm, versions 1.3.34 through <1.4.0) allows any authenticated attacker to arbitrarily delete session tokens belonging to other users by supplying a crafted _multi-* cookie to the /sign-out after-hook, which forwards cookie values to internalAdapter.deleteSessions() without verifying the cryptographic signature. The flaw is not listed in the CISA KEV catalog and no public exploit code has been identified, but the low attack complexity makes unauthorized targeted session termination straightforward once an attacker holds any valid application session. Version 1.4.0 resolves the issue via patch commit cfc453a2a6eb02951f9a0a7c944064936e73eee8.

RemediationAI

Upgrade better-auth to version 1.4.0 or later; this is the vendor-confirmed fix (patch commit cfc453a2a6eb02951f9a0a7c944064936e73eee8) and the only fully remediated path. Full details are in the GitHub Security Advisory at https://github.com/better-auth/better-auth/security/advisories/GHSA-wmjr-v86c-m9jj. If an immediate upgrade is not feasible, disabling the multi-session plugin is the most effective compensating control, as the vulnerability is entirely isolated to that plugin's /sign-out after-hook - the trade-off is that users will lose the ability to maintain concurrent sessions. As a lesser mitigation, rate-limiting the /sign-out endpoint per authenticated user can reduce the blast radius of bulk session-deletion attempts but will not prevent exploitation by a patient attacker and should not be treated as a substitute for patching.

Affected VersionsENISA

better-auth 0 <1.4.0

Affected Packages

npm better-auth fix: 1.4.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

better-auth is a TypeScript authentication library distributed via npm (CPE: cpe:2.3:a:better-auth:better-auth:*:*:*:*:*:*:*:*) that provides a multi-session plugin enabling users to maintain several concurrent authenticated sessions. The plugin registers an after-hook on the /sign-out route that reads raw _multi-* cookie values from the incoming request and passes the extracted session token identifiers directly to internalAdapter.deleteSessions(). The root cause is CWE-347 (Improper Verification of Cryptographic Signature): the application's security design relies on signed cookies to ensure the cookie value has not been tampered with by the client, but the after-hook reads the raw (unsigned) cookie instead of calling getSignedCookie or an equivalent verification function. Because cookie values are attacker-controlled HTTP headers, skipping signature verification means any value the attacker supplies - including session IDs belonging to other users - is treated as trusted input and acted upon by the session store.

Know when Jwt Attack gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 2.0 LOW
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:L/VI:L/VA:L/SC:L/SI:L/SA:N
vuln.today AI 6.4 MEDIUM

Any authenticated session suffices (PR:L); no victim interaction needed; scope changes because other users' sessions are deleted, not the attacker's own.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:L/SA:L

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
High
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Aug 01, 2026 - 13:01 EUVD

DescriptionCVE.org

better-auth versions greater than 1.3.34 and before 1.4.0 contain a vulnerability in the multi-session plugin's /sign-out after-hook, which trusts raw multi-session cookies and forwards extracted values to internalAdapter.deleteSessions without verifying the cookie signature (e.g., via getSignedCookie). An attacker can supply a forged _multi-* cookie to trigger deletion of arbitrary session tokens.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 11 npm packages depend on better-auth (10 direct, 1 indirect)

Ecosystem-wide dependent count for version 1.3.34.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Low
emerging TypeScript auth library, limited broad enterprise footprint
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2013-3900 MEDIUM
5.5 Dec 11

Why is Microsoft republishing a CVE from 2013? We are republishing CVE-2013-3900 in the Security Update Guide to update

CVE-2026-48558 CRITICAL POC
9.5 Jun 12

Authentication bypass in SimpleHelp 5.5.15 and prior (plus 6.0 pre-release builds) allows remote unauthenticated attacke

CVE-2026-5430 CRITICAL POC
10.0 Aug 06

Authentication bypass in WSO2 API Manager and related components (Universal Gateway, Traffic Manager, API Control Plane,

CVE-2025-59718 CRITICAL
9.8 Dec 09

Authentication bypass in Fortinet FortiOS, FortiProxy, and FortiSwitchManager allows unauthenticated remote attackers to

CVE-2025-25291 CRITICAL POC
9.3 Mar 12

ruby-saml provides security assertion markup language (SAML) single sign-on (SSO) for Ruby. Rated critical severity (CVS

CVE-2026-47304 CRITICAL POC
9.8 Jul 14

Security feature bypass in Microsoft .NET (shipped via Visual Studio 2022 17.12/17.14 and Visual Studio 2026 18.7) lets

CVE-2025-25292 CRITICAL POC
9.3 Mar 12

ruby-saml provides security assertion markup language (SAML) single sign-on (SSO) for Ruby. Rated critical severity (CVS

CVE-2022-25898 CRITICAL POC
9.8 Jul 01

The package jsrsasign before 10.5.25 are vulnerable to Improper Verification of Cryptographic Signature when JWS or JWT

CVE-2026-107722 CRITICAL POC
9.8 Oct 08

Authentication and authorization bypass in fast-jwt 6.2.0 through 6.2.4 (npm, NearForm) lets a remote, unauthenticated a

CVE-2024-42004 CRITICAL POC
9.8 Dec 18

A library injection vulnerability exists in Microsoft Teams (work or school) 24046.2813.2770.1094 for macOS. Rated criti

CVE-2024-41145 CRITICAL POC
9.8 Dec 18

A library injection vulnerability exists in the WebView.app helper app of Microsoft Teams (work or school) 24046.2813.27

CVE-2024-41138 CRITICAL POC
9.8 Dec 18

A library injection vulnerability exists in the com.microsoft.teams2.modulehost.app helper app of Microsoft Teams (work

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy