x402 SDK Critical Flaws Could Drain AI Agent Wallets
Original source
Critical x402 SDK Flaw Could Let Malicious APIs Drain AI Agents’ Token Balances
The Hacker News →Security research firm V12 discovered three critical vulnerabilities in x402 SDKs, the payment protocol enabling AI agents to pay for APIs directly. All three flaws were patched in August 18 releases, but the x402 Foundation—which took over the project from Coinbase this year—published no security advisory. Developers using standard vulnerability tools like npm audit and PyPI won’t automatically learn they need to upgrade.
The vulnerabilities compromised payment authorization in distinct ways. First, the default client imposed no spending limit, allowing malicious APIs to request an agent’s full token balance. Second, the TypeScript Solana facilitator mistakenly accepted token approvals (which transfer no funds) as valid payments. Third, the Sign-In-With-X login feature failed to verify request domains, enabling attackers to forge authentication signatures for different websites.
Recent patches enforce spending caps of $1 by default and limit approved tokens, validate Solana transaction types, and require domain matching on logins. Older SDK versions remain at risk unless developers manually update them, and applications can disable these protections entirely. The foundation’s decision to forgo a formal security advisory means developers don’t get automatic notification of the need to patch.
Read the full article
Continue reading at The Hacker News →This is an AI-generated summary. Read the original for the full story.