Vulnerabilities in pkg:npm/x402-next

PACKAGE
Advisory Summary

GHSA-3j63-5h8p-gf7c is a HIGH remote code execution vulnerability (General Security Weakness) affecting X402 libraries in the npm ecosystem. The issue involves x402 sdk vulnerable in outdated versions in resource servers for builders. Remediation is available by upgrading affected packages to version 0.5.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/x402-next

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/x402-next. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-3j63-5h8p-gf7c - HIGH x402 SDK vulnerable in outdated versions in resource servers for builders

GHSA-3j63-5h8p-gf7c at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-3j63-5h8p-gf7c
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product X402
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-3j63-5h8p-gf7c

To remediate this vulnerability, upgrade all affected X402 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

x402 fixed: 0.5.2
npm install x402@0.5.2
x402-next fixed: 0.5.2
npm install x402-next@0.5.2
x402-express fixed: 0.5.2
npm install x402-express@0.5.2
x402-hono fixed: 0.5.2
npm install x402-hono@0.5.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls x402

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-3j63-5h8p-gf7c, inspect your project dependencies using npm:

npm ls x402

Analyze the terminal output to locate any version of X402 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.2), your application is affected.

Note: The npm ls x402 command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In X402, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact There is a security vulnerability in outdated versions of the x402 SDK. This does not directly affect users' keys, smart contracts, or funds. This primarily impacts builders working on resource servers. ### Patches Please update to the following package versions: * x402 >= 0.5.2 * x402-next >= 0.5.2 * x402-express >= 0.5.2 * x402-hono >= 0.5.2

GHSA-3j63-5h8p-gf7c Affected X402 Versions

4 component(s)
Fixed Versions:
0.5.2
Product / Package Ecosystem Affected Versions Fixed Version
x402
npm
< 0.5.2
0.5.2
x402-next
npm
< 0.5.2
0.5.2
x402-express
npm
< 0.5.2
0.5.2
x402-hono
npm
< 0.5.2
0.5.2

References

Frequently Asked Questions

What is GHSA-3j63-5h8p-gf7c?
GHSA-3j63-5h8p-gf7c is a security vulnerability in X402 involving x402 SDK vulnerable in outdated versions in resource servers for builders under General Security Weakness.
Which X402 versions are affected?
Affected versions include releases prior to 0.5.2 across affected packages: x402, x402-next, x402-express, x402-hono.
What version fixes GHSA-3j63-5h8p-gf7c?
Upgrading to 0.5.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is x402 affected?
Yes, x402 is affected in releases prior to 0.5.2. Upgrade your dependency to 0.5.2 or later.
Is x402-next affected?
Yes, x402-next is affected in releases prior to 0.5.2. Upgrade your dependency to 0.5.2 or later.
What CWE is associated with GHSA-3j63-5h8p-gf7c?
GHSA-3j63-5h8p-gf7c is classified under General Security Weakness.
How can I check npm dependencies for GHSA-3j63-5h8p-gf7c?
Run the dependency tree command: 'npm ls x402'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3j63-5h8p-gf7c",
  "modified" : "2025-08-20T20:51:55Z",
  "published" : "2025-08-20T20:51:55Z",
  "aliases" : [ ],
  "summary" : "x402 SDK vulnerable in outdated versions in resource servers for builders",
  "details" : "### Impact\nThere is a security vulnerability in outdated versions of the x402 SDK. This does not directly affect users' keys, smart contracts, or funds.\n\nThis primarily impacts builders working on resource servers.\n\n### Patches\nPlease update to the following package versions:\n* x402 >= 0.5.2\n* x402-next >= 0.5.2\n* x402-express >= 0.5.2\n* x402-hono >= 0.5.2",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "x402"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.5.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "x402-next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.5.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "x402-express"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.5.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "x402-hono"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.5.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/coinbase/x402/security/advisories/GHSA-3j63-5h8p-gf7c"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/coinbase/x402"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-08-20T20:51:55Z",
    "nvd_published_at" : null
  }
}