BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2025-61928 in Full products

No CVSS score published

Better Auth is an authentication and authorization library for TypeScript. In versions prior to 1.3.26, unauthenticated attackers can create or modify API keys for any user by passing that user's id in the request body to the `api/auth/api-key/create` route. `session?.user ?? (authRequired ? null : { id: ctx.body.us...

Affects 0 products from 1 vendor. Facts below cite their sources.

CVSS v49.3
EPSS0.8%
EPSS percentile54th
FixUnknown

Affected products and versions

VendorProductAffected versions
Full — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

Better Auth is an authentication and authorization library for TypeScript. In versions prior to 1.3.26, unauthenticated attackers can create or modify API keys for any user by passing that user's id in the request body to the `api/auth/api-key/create` route. `session?.user ?? (authRequired ? null : { id: ctx.body.userId })`. When no session exists but `userId` is present in the request body, `authRequired` becomes false and the user object is set to the attacker-controlled ID. Server-only field validation only executes when `authRequired` is true (lines 280-295), allowing attackers to set privileged fields. No additional authentication occurs before the database operation, so the malicious payload is accepted. The same pattern exists in the update endpoint. This is a critical authentication bypass enabling full an unauthenticated attacker can generate an API key for any user and immediately gain complete authenticated access. This allows the attacker to perform any action as the victim user using the api key, potentially compromise the user data and the application depending on the victim's privileges. Version 1.3.26 contains a patch for the issue.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-61928
BreachSpider IDBS-2025-GLOBAL-035009-I
Published2025-10-09
Last modified2026-10-19
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-285: CWE-285

CWE-306: Missing Authentication for Critical Function

Software does not perform any authentication for functionality that requires a verified identity.

Related attack patterns (CAPEC)

CAPEC-5 Blue Boxing via CWE-285

CAPEC-13 Subverting Environment Variable Values via CWE-285

CAPEC-45 Buffer Overflow via Symbolic Links via CWE-285

CAPEC-51 Poison Web Service Registry via CWE-285

CAPEC-59 Session Credential Falsification through Prediction via CWE-285

Show all 22

CAPEC-60 Reusing Session IDs (aka Session Replay) via CWE-285

CAPEC-76 Manipulating Web Input to File System Calls via CWE-285

CAPEC-127 Directory Indexing via CWE-285

CAPEC-402 Bypassing ATA Password Security via CWE-285

CAPEC-647 Collect Data from Registries via CWE-285

CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-285

CAPEC-12 Choosing Message Identifier via CWE-306

CAPEC-17 Using Malicious Files via CWE-285

CAPEC-36 Using Unpublished Interfaces or Functionality via CWE-306

CAPEC-39 Manipulating Opaque Client-based Data Tokens via CWE-285

CAPEC-62 Cross Site Request Forgery via CWE-306

CAPEC-77 Manipulating User-Controlled Variables via CWE-285

CAPEC-87 Forceful Browsing via CWE-285

CAPEC-104 Cross Zone Scripting via CWE-285

CAPEC-166 Force the System to Reset Values via CWE-306

CAPEC-668 Key Negotiation of Bluetooth Attack (KNOB) via CWE-285

CAPEC-216 Communication Channel Manipulation via CWE-306

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

Unauthenticated attackers can create or modify API keys for any user in Better Auth versions prior to 1.3.26 by exploiting a vulnerability in the `api/auth/api-key/create` route.

The vulnerability arises from the improper handling of the `userId` parameter in the request body when no session exists. Attackers can pass a `userId` to create or modify API keys for any user without authentication.

Questions

What is CVE-2025-61928?

Unauthenticated attackers can create or modify API keys for any user in Better Auth versions prior to 1.3.26 by exploiting a vulnerability in the `api/auth/api-key/create` route.

Is CVE-2025-61928 actively exploited?

No confirmed active exploitation of CVE-2025-61928 as of 2026-10-25.

How do I remediate CVE-2025-61928?

Priority: IMMEDIATE.

What systems are affected by CVE-2025-61928?

CVE-2025-61928 affects Full.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Full","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-19.