# GHSA-qr2g-p6q7-w82m: x402 SDK Security Advisory

> Facilitators processing Solana payments must upgrade the x402 SDK to mitigate a security vulnerability in outdated versions.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not stated
- **Attackable:** Over the internet
- **Victim action needed:** Not stated
- **Fix available:** Yes
- **Published:** 7 Mar 2026
- **Also known as:** GO-2026-4647

## What is GHSA-qr2g-p6q7-w82m?

GHSA-qr2g-p6q7-w82m is a vulnerability in github.com/coinbase/x402/go, published on 7 Mar 2026. It can be exploited over the network.

### Official description

### Impact

A security vulnerability exists in outdated versions of the x402 SDK.

This vulnerability does not affect users' private keys, smart contracts, or funds.

The issue impacts resource servers accepting payments on Solana when the facilitator is running a vulnerable version of the x402 SDK.

### Who Should Take Action

Facilitators that process payments on Solana must upgrade the x402 SDK to the patched versions listed below.

Clients are not required to upgrade.

Resource servers are not required to upgrade unless they operate their own facilitator (self-facilitate).

### Patches

Please update to the following package versions:
* Npm: @x402/svm >= 2.6.0
* Pypi: x402 >= 2.3.0
* Go: x402 >= 2.5.0

## Which versions are affected by GHSA-qr2g-p6q7-w82m?

7 open source packages ship an affected version, including github.com/coinbase/x402/go, x402 and @x402/svm.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/coinbase/x402/go` | Go | All versions | None |
| `github.com/coinbase/x402/go` | Go | All versions | 2.5.0 |
| `github.com/coinbase/x402/go` | Go | All versions | 2.5.0 |
| `x402` | PyPI | All versions | 2.3.0 |
| `x402` | PyPI | All versions | 2.3.0 |
| `@x402/svm` | npm | All versions | 2.6.0 |
| `@x402/svm` | npm | All versions | 2.6.0 |

## How do I fix GHSA-qr2g-p6q7-w82m?

Upgrade github.com/coinbase/x402/go to 2.5.0 or later.

## Is GHSA-qr2g-p6q7-w82m being exploited?

There is no known exploitation of GHSA-qr2g-p6q7-w82m in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-qr2g-p6q7-w82m and fix it if it is affected.

What it is: GHSA-qr2g-p6q7-w82m is a vulnerability in github.com/coinbase/x402/go, published on 7 Mar 2026. It can be exploited over the network.
Exploitation: There is no known exploitation of GHSA-qr2g-p6q7-w82m in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/coinbase/x402/go (Go): affected all versions; no fix listed
- github.com/coinbase/x402/go (Go): affected all versions; fixed in 2.5.0
- github.com/coinbase/x402/go (Go): affected all versions; fixed in 2.5.0
- x402 (PyPI): affected all versions; fixed in 2.3.0
- x402 (PyPI): affected all versions; fixed in 2.3.0
- @x402/svm (npm): affected all versions; fixed in 2.6.0
- @x402/svm (npm): affected all versions; fixed in 2.6.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-qr2g-p6q7-w82m/ (Markdown: https://insights.sbomify.com/GHSA-qr2g-p6q7-w82m/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-qr2g-p6q7-w82m

---
From sbomify Insights: https://insights.sbomify.com/GHSA-qr2g-p6q7-w82m/
Summaries are generated and may contain mistakes; the official description above is the record.
