x402 SDK vulnerable in outdated versions in resource servers for buildersGHSA-3j63-5h8p-gf7c
GHSA-3j63-5h8p-gf7c is a security vulnerability in x402. A fix is available for x402 — see the affected versions and patch details below.
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
x402npmx402-nextnpmx402-expressnpmDescription
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
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | x402 | all versions | 0.5.2npm install x402@0.5.2 |
| 📦npm | x402-next | all versions | 0.5.2npm install x402-next@0.5.2 |
| 📦npm | x402-express | all versions | 0.5.2npm install x402-express@0.5.2 |
| 📦npm | x402-hono | all versions | 0.5.2npm install x402-hono@0.5.2 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for x402, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update x402 to 0.5.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-3j63-5h8p-gf7c is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-3j63-5h8p-gf7c in your dependencies?
Find it across npm, including transitive dependencies.