CVE-2022-35917 json
Weakness in Transfer Validation Logic in @solana/pay
published 2022-08-01 4 y ago modified 2026-06-17 4 mo ago also GHSA-j47c-j42c-mwqq , EUVD-2022-6575
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 58%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm @solana/pay 0.2.1
- solanalabs pay 0.2.1
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.87% chance of exploitation in the next 30 days, higher than 58% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @solana/pay | <0.2.1 |
0.2.1 |
Affected products
- solana-labs solana-pay
Classification
- Weakness
-
- CWE-670 Always-Incorrect Control Flow Implementation
References
-
github.com
/solana-labs/solana-pay/commit/ac6ce0d0a81137700874a8bf5a7caac3be999fad
web, patch, third-party-advisory
-
github.com
/solana-labs/solana-pay/security/advisories/GHSA-j47c-j42c-mwqq
web, patch, third-party-advisory
-
github.com
/solana-labs/solana-pay/blob/master/SPEC.md#reference
web, third-party-advisory
-
github.com
/solana-labs/solana-pay/blob/master/core/src/validateTransfer.ts
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-35917
advisory
-
github.com
/solana-labs/solana-pay
package
Sources
- CVE List CVE-2022-35917
- GitHub Advisory GHSA-j47c-j42c-mwqq
- NVD CVE-2022-35917
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.