Critical x402 SDK Flaw Could Let Malicious APIs Drain AI Agents’ Token Balances

Summary

A critical flaw in the x402 SDKs allowed malicious APIs to potentially drain an AI agent's entire token balance by requesting it to sign for its full balance. This vulnerability existed because the default client in the SDKs did not enforce spending limits until an update released on August 18.

IFF Assessment

FOE

This vulnerability allows for the potential theft of tokens, which is detrimental to users and developers relying on these AI agents and their associated token-based payment systems.

Severity

8.0 High (AI Estimated)

This flaw allows for a significant financial impact (Confidentiality and Integrity impact) by enabling the draining of token balances. The attack vector is likely network-based, and exploitation is relatively straightforward given the described behavior of the default client before the fix.

Defender Context

This vulnerability highlights a critical security risk in the infrastructure powering AI agents, specifically concerning their payment mechanisms. Defenders should be aware of the potential for token balance exploits in AI agent integrations and verify that all SDKs and payment-related APIs are updated to the latest secure versions.

Read Full Story →