CoinPressroom logoCoinPressroom.THE CONTEXT BEHIND CRYPTO
IN FOCUSBitcoinEthereumSolanaDeFiAI & evidenceWallet securityPVTY briefingUPDATED / 2026-12-05
← Daily briefings

Security

x402 disclosure reveals patched wallet-drain risk in AI agent payments

Researchers disclosed three critical x402 SDK flaws affecting automated crypto payments, including uncapped spending, Solana payment bypass and cross-site login signing.

By CoinPressroom automated news desk ·

AI-assisted briefing, automatically published after source and duplication checks. Event date: 2026-10-22. Not investment advice.

Three trust boundaries failed

Security firm V12 disclosed on October 22 that it found 25 vulnerabilities in x402, the HTTP-native payment protocol used by software and AI agents to pay for APIs with stablecoins and other tokens. Its report focuses on three findings it rated critical: a default client with no spending ceiling, a Solana facilitator path that could accept an approval instead of a transfer, and a wallet-login flow that could sign a challenge for a different website.

The most direct wallet risk affected automated clients that signed payments without a separate human prompt or an application-defined policy. An API supplies the amount, asset, recipient and network in a 402 Payment Required response. Before spend controls were added, the documented default client selected a supported option without enforcing a per-payment budget. V12 said a hostile server could request the wallet’s full balance of a compatible token and receive a valid authorization.

Payment verification and login were also exposed

The Solana issue sat on the merchant side. V12 found that affected TypeScript facilitator code parsed a token instruction as TransferChecked without first confirming its instruction type. Because ApproveChecked used a compatible layout, a crafted transaction could pass verification while moving no tokens. V12 reproduced the acceptance locally but did not submit a live transaction; the Python and Go implementations already performed the missing check.

The third flaw involved Sign-In-With-X, an x402 extension that authenticates a wallet by signing a message. Automated wrappers did not verify that the domain and URI in a server-supplied message matched the website the client had contacted. A malicious API could relay a fresh challenge from another service, obtain the wallet’s signature and use it to access the other service wherever that challenge remained valid.

The fixes pre-date the public disclosure

These are disclosed, patched weaknesses—not a report of an active drain. V12 says it reported the three critical and 13 high-severity findings on August 12, and the critical issues were fixed by August 20. Neither V12 nor the x402 Foundation has publicly reported exploitation. The x402 Foundation’s spend-control change was merged on August 13 and added a default $1 cap for recognised dollar-pegged assets, plus configurable asset allowlists and per-asset limits.

The Hacker News verified that the August 18 releases introduced the relevant controls across TypeScript, Python and Go. It also found no dedicated advisory for these three issues in the foundation’s public security-advisory list as of October 23, meaning common package-audit checks could fail to flag older installations. The report identifies version 2.23.0 as the minimum fixed line for affected TypeScript client, extension and Solana facilitator packages; later releases include additional fixes.

Teams using x402 should therefore verify package versions rather than rely only on audit output. Automated signers need explicit per-payment and cumulative budgets, restricted tokens, networks and recipients, and domain checks before wallet authentication. Facilitators should verify the exact on-chain instruction and confirm settlement before delivering paid resources. The central lesson is narrower than “AI wallets are unsafe”: unattended payment software is only as constrained as the policy enforced before it signs.

Sources

Editorial standards and corrections