Five Attacks on x402 Agentic Payment Protocol
Not on the map. Why?
Abstract (arXiv)
The x402 protocol revives the HTTP 402 Payment Required status code to enable web-native micropayments across APIs, content, and agents. It combines synchronous HTTP authorization with asynchronous blockchain settlement and introduces a cross-layer attack surface absent from conventional web and on-chain payments. In this paper, we formally analyze x402 and empirically show that it is vulnerable in both design and implementation. We present five concrete attacks that reveal weaknesses in authorization, binding, replay protection, and web-layer handling, showing that x402 is vulnerable across multiple stages of the payment workflow. We validate these attacks through a reproducible testbed on local chains, Base Sepolia, and live endpoints and further audit three open-source SDKs and endpoints. Our results show that all five attacks are practical and can cause either unpaid service or paid-but-denied outcomes. We also propose practical mitigations.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). First posted on arXiv 12 May 2026.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Can Trustless Agents Be Trusted? An Empirical Study of the ERC-8004 Decentralized AI Agent Ecosystemcited by 2
- 2026A Formal Analysis of Agent Payment Protocolscited by 0
- 2026Your Agent Says Yes: Interpreting Adversarial Market Behavior Beyond Individual Transactionscited by 0
- 2026SoK: Decentralized Agent Economic Infrastructurecited by 0
- 2026SoK: Decentralized Agent Economic Infrastructure1 Oct 2026
- 2026Your Agent Says Yes: Interpreting Adversarial Market Behavior Beyond Individual Transactions7 Sep 2026
- 2026A Formal Analysis of Agent Payment Protocols30 Aug 2026
- 2026Can Trustless Agents Be Trusted? An Empirical Study of the ERC-8004 Decentralized AI Agent Ecosystem24 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2026Free-Riding the Agentic Web: A Systematic Security Analysis of x402 Payments
- 2026A402: Binding Cryptocurrency Payments to Service Execution for Agentic Commerce
- 2026Beyond the Mandate: A Systematic Security Analysis of the Agent Payments Protocol (AP2)
- 2026Zero-Trust Runtime Verification for Agentic Payment Protocols: Mitigating Replay and Context-Binding Failures in AP2
- 2026Protocol-Level Attacks on Agentic Commerce Platforms: A Cross-Platform Taxonomy, AIP-Bench, and Unified Defense
- 2026Hardening x402: PII-Safe Agentic Payments via Pre-Execution Metadata Filtering
- 2026APEX: Agent Payment Execution with Policy for Autonomous Agent API Access
- 2025Towards Multi-Agent Economies: Enhancing the A2A Protocol with Ledger-Anchored Identities and x402 Micropayments for AI Agents