Vulnerability
Published 2026-10-22 New
Verified 2026-10-23

x402 agent-payment SDKs: security firm V12 details three critical flaws, including a default client with no spending limit that a malicious API could use to get an AI agent to sign away its whole balance of a supported token; fixed in August releases

Security firm V12 said on 22 October 2026 that it found 25 vulnerabilities in the x402 codebase, the open standard that lets software such as AI agents pay for an API call inside an ordinary HTTP exchange (a server answers 402 Payment Required, the client signs a payment and retries). V12 described three it rated critical. First, the documented default client setup enforced no per-payment limit or total budget, so, according to V12, a hostile API could turn a routine request into a request for the wallet's full balance of a compatible token, and with an automatic signer and no application-supplied policy the client could sign it.

Second, the TypeScript Solana facilitators did not check the instruction type, so a token approval, which moves no tokens, was accepted as a payment in V12's local test; V12 called it "a complete payment bypass" and says the test did not submit a live transaction. Third, the Sign-In-With-X client signed login messages without checking that the website named in them was the one it had contacted, which V12 says could let a malicious server log in to another site as the agent's wallet.

V12 says it reported the 3 critical and 13 high-severity findings to the x402 team on 12 August 2026 and that the 3 critical flaws were fixed by 20 August. The x402 Foundation's TypeScript changelogs for 2.23.0 list the matching changes: client spendControls that by default allow only recognised pegged assets with a $1 USD cap, a required origin check before signing Sign-In-With-X messages, and a validation guard for TransferChecked in the Solana package.

According to The Hacker News, neither V12 nor the x402 Foundation has publicly reported attacks using the flaws, the foundation has published no security advisory for them, and npm audit and PyPI listed no advisories for the last releases before the fixes as of 23 October.

Product
x402 SDKs (x402 Foundation): payment clients, Solana facilitator (TypeScript) and Sign-In-With-X extension
Versions
Fixed (TypeScript): @x402/core and @x402/svm 2.23.0 and later, per the x402 changelogs; V12 says all three critical flaws were fixed by 20 August 2026. The Solana approval-as-payment flaw affected only the TypeScript facilitator, according to The Hacker News.
CVSS
not published; V12 rates the three flaws critical
Exploited in Australia?
unknown
Patch to
Update x402 SDKs to current releases (TypeScript @x402/core and @x402/svm 2.23.0 or later) and keep spend controls enabled with explicit per-payment and total budgets for any agent that signs payments automatically.

tech ai