Vulnerabilities in pkg:npm/x402-next
PACKAGEGHSA-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.
pkg:npm/x402-next
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
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.
npm install x402@0.5.2
npm install x402-next@0.5.2
npm install x402-express@0.5.2
npm install x402-hono@0.5.2
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
GHSA-3j63-5h8p-gf7c Affected X402 Versions
4 component(s)| 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?
Which X402 versions are affected?
What version fixes GHSA-3j63-5h8p-gf7c?
Is x402 affected?
Is x402-next affected?
What CWE is associated with GHSA-3j63-5h8p-gf7c?
How can I check npm dependencies for GHSA-3j63-5h8p-gf7c?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}