{"id":"CVE-2022-35917","published":"2022-08-01T21:10:11Z","modified":"2025-04-23T17:54:43Z","title":"Weakness in Transfer Validation Logic in @solana/pay","vendor":"solana-labs","product":"solana-pay","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00866,"percentile":0.59579,"provenance":"source"},"cwes":[{"id":"CWE-670","name":"Always-Incorrect Control Flow Implementation"}],"references":[{"url":"https://github.com/solana-labs/solana-pay/security/advisories/GHSA-j47c-j42c-mwqq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/solana-labs/solana-pay/commit/ac6ce0d0a81137700874a8bf5a7caac3be999fad","tags":["x_refsource_MISC"]},{"url":"https://github.com/solana-labs/solana-pay/blob/master/SPEC.md#reference","tags":["x_refsource_MISC"]},{"url":"https://github.com/solana-labs/solana-pay/blob/master/core/src/validateTransfer.ts","tags":["x_refsource_MISC"]}],"priority":{"score":15.6,"factors":[{"name":"EPSS percentile","points":11.92},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"solana-labs","affectedVersions":[{"vendor":"solana-labs","product":"solana-pay","versions":["< 0.2.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-23T15:52:35.047087Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@solana/pay","vulnerableRanges":["<0.2.1"],"patched":["0.2.1"],"from":["GHSA-j47c-j42c-mwqq"],"provenance":"source"}],"summary":{"text":"The flaw is an edge case in the transfer validation logic of the validateTransfer function in the Solana Pay SDK (the @solana/pay package from solana-labs), which can cause it to validate multiple transfers when a transaction is located by its reference key.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:32Z"},"euvd":{"id":"EUVD-2022-6575","exploited":false,"provenance":"source"}}