Advisories
For your digest

x402, x402-next: x402 SDK vulnerable in outdated versions in resource servers for builders

It touches something Phylax follows. No evidence of use yet.

Does it affect what I run?

Checked in your browser. The version you type is not sent anywhere.

Who is affected

  • x402 (npm): every version, before 0.5.2
  • x402-next (npm): every version, before 0.5.2
  • x402-express (npm): every version, before 0.5.2
  • x402-hono (npm): every version, before 0.5.2

The fix

  • x402 (npm) fixed in 0.5.2

    npm
    npm install x402@0.5.2
    pnpm
    pnpm add x402@0.5.2
    yarn
    yarn add x402@0.5.2
    bun
    bun add x402@0.5.2
    Check what is installed
    npm ls x402
    Paste into Cursor, Lovable or Claude Code
    Upgrade the npm dependency x402 to 0.5.2 or the nearest later release, to fix GHSA-3j63-5h8p-gf7c. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • x402-next (npm) fixed in 0.5.2

    npm
    npm install x402-next@0.5.2
    pnpm
    pnpm add x402-next@0.5.2
    yarn
    yarn add x402-next@0.5.2
    bun
    bun add x402-next@0.5.2
    Check what is installed
    npm ls x402-next
    Paste into Cursor, Lovable or Claude Code
    Upgrade the npm dependency x402-next to 0.5.2 or the nearest later release, to fix GHSA-3j63-5h8p-gf7c. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • x402-express (npm) fixed in 0.5.2

    npm
    npm install x402-express@0.5.2
    pnpm
    pnpm add x402-express@0.5.2
    yarn
    yarn add x402-express@0.5.2
    bun
    bun add x402-express@0.5.2
    Check what is installed
    npm ls x402-express
    Paste into Cursor, Lovable or Claude Code
    Upgrade the npm dependency x402-express to 0.5.2 or the nearest later release, to fix GHSA-3j63-5h8p-gf7c. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • x402-hono (npm) fixed in 0.5.2

    npm
    npm install x402-hono@0.5.2
    pnpm
    pnpm add x402-hono@0.5.2
    yarn
    yarn add x402-hono@0.5.2
    bun
    bun add x402-hono@0.5.2
    Check what is installed
    npm ls x402-hono
    Paste into Cursor, Lovable or Claude Code
    Upgrade the npm dependency x402-hono to 0.5.2 or the nearest later release, to fix GHSA-3j63-5h8p-gf7c. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.

Fix commands generated from the advisory's versions. No model wrote them.

In plain words

Brief pending: here are the facts and the fix. The explanation in plain words follows when it has been written and checked.

Evidence

No evidence that it is being used, or can be. It is listed because of what it affects.

Timeline

  1. First published here, as "For your digest".