Weakness in Transfer Validation Logic in @solana/pay
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-35917
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 03:13 UTC · Revision 1
Source evidence
Weakness in Transfer Validation Logic in @solana/pay
core-osv · Original sourcePublished 1 Aug 2022, 21:10 UTC
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.
osv:CVE-2022-35917
Complete source record
{
"id": "9666e826ce5350b0ee776cf9b99b6bae8221f56098a626244372444f5f863519",
"url": "https://osv.dev/vulnerability/CVE-2022-35917",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Weakness in Transfer Validation Logic in @solana/pay",
"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.",
"evidence": "osv:CVE-2022-35917",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2022-35917",
"aliases": [
"CVE-2022-35917",
"GHSA-j47c-j42c-mwqq"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/solana-foundation/pay",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "ac6ce0d0a81137700874a8bf5a7caac3be999fad"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"fixed": "ac6ce0d0a81137700874a8bf5a7caac3be999fad"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-35917.json"
}
}
],
"modified": "2026-10-28T02:30:53.274311497Z",
"provider": "osv",
"references": [
"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",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35917.json",
"https://github.com/solana-labs/solana-pay/security/advisories/GHSA-j47c-j42c-mwqq",
"https://nvd.nist.gov/vuln/detail/CVE-2022-35917",
"https://github.com/solana-labs/solana-pay/commit/ac6ce0d0a81137700874a8bf5a7caac3be999fad"
],
"provider_metadata": {
"cwe_ids": [
"CWE-670"
],
"cna_assigner": "GitHub_M",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"fixed": "0.2.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35917.json"
}
},
"related_cves": [
{
"value": "CVE-2022-35917",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 522109,
"published_at": "2022-08-01T21:10:11+00:00"
}