GHSA-3j63-5h8p-gf7c — x402
GHSA-3j63-5h8p-gf7c is a security vulnerability in x402. A fix is available for x402 — see the affected versions and patch details below.
x402 SDK vulnerable in outdated versions in resource servers for builders
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.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-3j63-5h8p-gf7c can be triaged on real exposure rather than presence alone.
Tailored to GHSA-3j63-5h8p-gf7c. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-3j63-5h8p-gf7c in your dependencies?
O3 Security finds GHSA-3j63-5h8p-gf7c across npm dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.