Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. better-auth
  4. ›
  5. GHSA-99h5-pjcv-gr6v

GHSA-99h5-pjcv-gr6v: Better Auth: Unauthenticated API key creation through api-key plugin

October 9, 2025

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.

References

  • github.com/advisories/GHSA-99h5-pjcv-gr6v
  • github.com/better-auth/better-auth
  • github.com/better-auth/better-auth/commit/556085067609c508f8c546ceef9003ee8c607d39
  • github.com/better-auth/better-auth/security/advisories/GHSA-99h5-pjcv-gr6v

Code Behaviors & Features

Detect and mitigate GHSA-99h5-pjcv-gr6v 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 before 1.3.26

Fixed versions

  • 1.3.26

Solution

Upgrade to version 1.3.26 or above.

Weakness

  • CWE-285: Improper Authorization
  • CWE-306: Missing Authentication for Critical Function

Source file

npm/better-auth/GHSA-99h5-pjcv-gr6v.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 21 Oct 2025 00:19:24 +0000.