Skip to content

When HTTP 402 Meets the Blockchain: Risks on Emerging x402 Payments

Jul 2026 · arXiv.org · Vol abs/2607.19545 · 3 citations · ⚡ 1 influential · 46 references
Computer Science

TL;DR

This work presents the first systematic study of authorization correctness and execution safety in current facilitator-mediated x402 deployments in the wild, identifying eight security rules for facilitators as critical payment infrastructure and derives four new attack vectors from these rules.

Abstract

x402 is an emerging payment protocol for Web APIs and autonomous AI agents. x402 extends HTTP 402 with a payment negotiation flow and delegates payment proof verification and on-chain settlement to third-party facilitators. As a result, facilitators serve as a shared payment infrastructure for many independent merchants. This centralizes trust and validation in one component, so a single flaw can affect many services. Despite rapid adoption by major vendors and economically meaningful mainnet activity, the security posture of real-world x402 deployments remains poorly characterized. We present the first systematic study of authorization correctness and execution safety in current facilitator-mediated x402 deployments in the wild, identifying eight security rules for facilitators as critical payment infrastructure. Based on our analysis of rule violations, we derive four new attack vectors, including Free Shopping, Asset Theft, Service Denial, and Gas Abuse. These attacks exploit weaknesses in the real-world facilitator and server implementations and cause severe harm, including direct financial loss to merchants, theft of facilitator-held assets, unbounded sponsor-paid gas/fees, and disruption of payment services. To assess the security of x402 deployments at scale, we propose a semi-automated black-box tool and apply it to 15 major x402 facilitators collectively used by over 60K sellers and 360K buyers. Alarmingly, we find violations in all evaluated facilitators. We responsibly disclosed our findings to the affected parties, who acknowledged the issues and adopted mitigations, including changes by Coinbase. Finally, we complement our controlled testing with an empirical measurement of over 119 million recent Base and Solana transactions, quantifying x402 adoption, facilitator centralization, and ecosystem-level risk indicators.

View source

Similar papers

Conference Aug 2026

A Blockchain-Based Trusted Computing Power Trading Platform

The commercialization of distributed computing capacity is constrained by inconsistent resource descriptions, difficult-to-verify service commitments, fragmented transaction records, and limited accountability across organizations. This study develops a permissioned-ledger trading framework that combines normalized res...

Juan Wang, Li Wang · 0 citations
Open access Aug 2026

Blockchain-Based Automated Payment System

In today’s fast changing digital world, the need for secure, transparent, and reliable financial transactions is more important than ever especially in areas where fraud, delays, and unauthorized access are common concerns. Traditional payment systems often depend on centralized middlemen, which can lead to slow proces...

C. C. Ibebuogu · 0 citations
Open access 2026

Hybrid Blockchain-Based Tokenization for Secure and Interoperable Electronic Payment Systems

The findings indicate that the proposed model enhances security, interoperability, and operational efficiency while supporting regulatory compliance and blockchain-based token lifecycle management within real-time payment workflows, while keeping latency-critical authorization and settlement off-chain.

Omniah Abdullah Al Ibrahim, Suhair Alshehri · 0 citations
Open access Aug 2026

2320 - 2602

It is concluded that blockchain should be treated as a selective governance and assurance layer rather than a universal database and adoption should proceed through clinically bounded pilots, privacy-by-design architectures, explicit consortium governance, interoperability standards, and evaluation against non-blockcha...

Unknown authors · 0 citations
Conference Aug 2026

A Privacy-Aware Blockchain Ecosystem for Scalable and Reliable Fraud Prevention

The growing complexity of financial fraud, including identity theft, synthetic identity creation, account takeover, payment manipulation and money laundering has revealed basic constraints of the traditional fraud prevention architecture. The operational simplicity offered by centralized systems based on rules creates...

K. D., Moorthy Agoramoorthy · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.