better-auth
better-auth/skills/better-auth
- Type
- Plugin
- Scanned
- Nov 13, 2026
- Version
- 20c9e88a5c00
- Files read
- 8
This Claude plugin provides skills and slash commands that guide an AI coding agent in adding and configuring Better Auth authentication in TypeScript and JavaScript apps. Its main risks are an invitation email example that places unescaped user and organization names into HTML emails and workflow steps that run an unpinned npx auth@latest package from npm in projects holding database and auth secrets.
What it can reach
- Files
- Guides the agent to scan project config and lockfiles and to create or update authentication files, database schemas, UI pages, and .env files.
- Shell commands
- Instructs the agent to run package installation and schema migration commands including npm install, npx auth@latest, npx prisma, and npx drizzle-kit.
- Network
- Instructs the agent to fetch Better Auth documentation from https://better-auth.com/llms.txt when the Better Auth MCP is not available and to download npm packages.
- Secrets
- Guides configuring and using authentication secrets and credentials in environment variables such as BETTER_AUTH_SECRET, DATABASE_URL, and OAuth client secrets.
Findings
-
MediumUnescaped user and organization names in HTML invitation email template
better-auth/organization/SKILL.md:171
The organization skill instructs the agent to send HTML invitation emails by interpolating inviter.user.name and organization.name directly into an HTML string without escaping, while also enabling allowUserToCreateOrganization by default. In an app built from this template, any signed-up user can put arbitrary HTML or phishing links into their display name or organization name and invite external email addresses, sending spoofed HTML content from the application's trusted email sender.
Fix: HTML-escape inviter.user.name and organization.name before inserting them into HTML email bodies, or send plain-text invitation emails using the text field as the other skills in this plugin do.
-
LowSkills run unpinned npx auth@latest from npm at runtime
better-auth/create-auth/SKILL.md:95
All five skills instruct the agent to run database migrations and schema generation via npx auth@latest without installing or pinning the CLI in package.json or a lockfile. Every run downloads and executes whatever version is currently tagged latest on npm inside the project directory, where .env secrets such as DATABASE_URL and BETTER_AUTH_SECRET reside, bypassing lockfile verification even in projects with pinned dependencies.
Fix: Add the Better Auth CLI as a pinned devDependency in package.json matching the installed better-auth version so executions are locked by the package manager lockfile.
