Skip to main content
Vulnerability Database/CVE-2026-113603

CVE-2026-113603: x402 SIWX Server Extension Auth Bypass

CVE-2026-113603 is an authorization bypass flaw in x402 SIWX server extension allowing attackers to access premium routes by paying for cheaper ones. This post covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-113603 Overview

CVE-2026-113603 is an authorization bypass vulnerability in the x402 SIWX (Sign-In-With-X) server extension. The flaw affects @x402/extensions versions 2.3.1 through 2.28.0, the x402 PyPI package versions 2.11.0 through 2.25.0, and the Go module versions 2.16.0 through 2.28.0. The server extension validates payment against the route the client pays for, but then grants access based on a client-controlled PaymentPayload.resource URL. Paying clients can pay for a cheap SIWX-protected route and set resource.url to an expensive route, then repeatedly access the expensive route using only a SIGN-IN-WITH-X header. The weakness is categorized under [CWE-639: Authorization Bypass Through User-Controlled Key].

Critical Impact

Authenticated clients can bypass per-route payment enforcement and consume premium SIWX-protected endpoints indefinitely without paying for them.

Affected Products

  • @x402/extensions npm package, versions 2.3.1 through 2.28.0
  • x402 PyPI package, versions 2.11.0 through 2.25.0
  • x402 Go module (extensions/signinwithx), versions 2.16.0 through 2.28.0

Discovery Timeline

  • 2026-10-20 - CVE-2026-113603 published to NVD
  • 2026-10-21 - Last updated in NVD database

Technical Details for CVE-2026-113603

Vulnerability Analysis

The x402 protocol enables HTTP 402 payment-gated APIs, and the SIWX extension lets clients sign in once after paying and then present a short-lived token on subsequent requests. The server verifies that a PaymentPayload is valid for one route but issues the SIWX session based on the resource.url field embedded in that payload. Because the server does not require the paid route and resource.url to match, a client can reference an arbitrary target in the token issued back to it.

Once issued, the SIGN-IN-WITH-X header unlocks the route named in resource.url without re-checking payment. Repeated access to premium endpoints becomes free after a single minimum-fee payment. The flaw affects three independent language implementations: TypeScript (hooks.ts), Python (hooks.py), and Go (server.go), indicating a protocol-level design gap rather than a single-language bug.

Root Cause

The root cause is reliance on a client-controlled identifier (PaymentPayload.resource.url) as the authorization key for session issuance. Server code accepts whatever resource URL the paying client supplies instead of binding the SIWX session to the resource whose price was actually charged. This matches the [CWE-639] pattern of authorization decisions keyed on untrusted input.

Attack Vector

An attacker enumerates SIWX-protected routes on the target server and identifies the cheapest priced route. The attacker submits a valid PaymentPayload paying for the cheap route, while setting resource.url inside that payload to an expensive route. The server validates the payment, issues a SIWX session bound to the expensive route, and returns a token. The attacker then calls the expensive route repeatedly using only the SIGN-IN-WITH-X header, incurring no further charges. No authentication is required beyond the attacker acting as a paying client.

See the VulnCheck Advisory on SIWX Payment Bypass and upstream GitHub Issue #3838 for the maintainer discussion.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-113603

Indicators of Compromise

  • Server logs showing a PaymentPayload where the paid route differs from resource.url.
  • Clients that submit a single low-value payment and then issue a sustained volume of requests to higher-priced SIWX-protected routes.
  • SIGN-IN-WITH-X headers presented against routes for which no corresponding payment event exists in billing records.

Detection Strategies

  • Correlate payment-settlement records against access logs to flag SIWX sessions whose charged route does not equal the accessed route.
  • Add server-side telemetry that logs both payment.resource and resource.url on every SIWX issuance for retroactive auditing.
  • Alert when a single wallet or client identifier generates a payment-to-request ratio inconsistent with configured route pricing.

Monitoring Recommendations

  • Ingest x402 proxy and application logs into a central analytics pipeline and build dashboards comparing revenue per route against request volume per route.
  • Monitor the ratio of 402 Payment Required responses to 200 OK responses per route; a sharp divergence can indicate bypass activity.
  • Track upstream package versions in software bills of materials and alert when @x402/extensions, x402 (PyPI), or the Go module appear in the vulnerable version ranges.

How to Mitigate CVE-2026-113603

Immediate Actions Required

  • Upgrade @x402/extensions and the Go module beyond 2.28.0, and the PyPI x402 package beyond 2.25.0, once a fixed release is published through GitHub Pull Request #3840.
  • Enforce server-side validation that PaymentPayload.resource.url matches the route being charged before issuing a SIWX session.
  • Invalidate any SIWX tokens issued by vulnerable server versions and require clients to re-authenticate against patched endpoints.

Patch Information

The maintainers tracked the fix in GitHub Pull Request #3840, with implementation references in the Go server, TypeScript hooks, and Python hooks. Deploy the fixed release across every language implementation in use, since the design flaw is replicated in all three.

Workarounds

  • Add a middleware check that rejects any request where the paid route in the facilitator response does not equal the request path.
  • Disable the SIWX extension on high-value routes until upgraded, and fall back to per-request x402 payment enforcement.
  • Reduce the SIWX session lifetime to the minimum workable value to shrink the window during which a bypassed token can be reused.
bash
# Configuration example - pin and audit affected packages
npm ls @x402/extensions
pip show x402
go list -m all | grep x402

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.