CVE-2025-69287
BSV Blockchain SDK has an Authentication Signature Data Preparation Vulnerability
The BSV Blockchain SDK is a unified TypeScript SDK for developing scalable apps on the BSV Blockchain. Prior to version 2.0.0, a cryptographic vulnerability in the TypeScript SDK's BRC-104 authentication implementation caused incorrect signature data preparation, resulting in signature incompatibility between SDK implementations and potential authentication bypass scenarios. The vulnerability was located in the Peer.ts file of the TypeScript SDK, specifically in the processInitialRequest and processInitialResponse methods where signature data is prepared for BRC-104 mutual authentication. The TypeScript SDK incorrectly prepared signature data by concatenating base64-encoded nonce strings (message.initialNonce + sessionNonce) then decoding the concatenated base64 string (base64ToBytes(concatenatedString)). This produced ~32-34 bytes of signature data instead of the correct 64 bytes. BRC-104 authentication relies on cryptographic signatures to establish mutual trust between peers. When signature data preparation is incorrect, signatures generated by the TypeScript SDK don't match those expected by Go/Python SDKs; cross-implementation authentication fails; and an attacker could potentially exploit this to bypass authentication checks. The fix in version 2.0.0 ensures all SDKs now produce identical cryptographic signatures, restoring proper mutual authentication across implementations.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
5.4
BSV Blockchain SDK has an Authentication Signature Data Preparation Vulnerability
The BSV Blockchain SDK is a unified TypeScript SDK for developing scalable apps on the BSV Blockchain. Prior to version 2.0.0, a cryptographic vulnerability in the TypeScript SDK's BRC-104 authentication implementation caused incorrect signature data preparation, resulting in signature incompatibility between SDK implementations and potential authentication bypass scenarios. The vulnerability was located in the Peer.ts file of the TypeScript SDK, specifically in the processInitialRequest and processInitialResponse methods where signature data is prepared for BRC-104 mutual authentication. The TypeScript SDK incorrectly prepared signature data by concatenating base64-encoded nonce strings (message.initialNonce + sessionNonce) then decoding the concatenated base64 string (base64ToBytes(concatenatedString)). This produced ~32-34 bytes of signature data instead of the correct 64 bytes. BRC-104 authentication relies on cryptographic signatures to establish mutual trust between peers. When signature data preparation is incorrect, signatures generated by the TypeScript SDK don't match those expected by Go/Python SDKs; cross-implementation authentication fails; and an attacker could potentially exploit this to bypass authentication checks. The fix in version 2.0.0 ensures all SDKs now produce identical cryptographic signatures, restoring proper mutual authentication across implementations.
- Record
CVE-2025-69287- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L - Weakness
- CWE-573
- Updated
- 2026-11-02
EUVDEUVD-2025-207789
5.4
The BSV Blockchain SDK is a unified TypeScript SDK for developing scalable apps on the BSV Blockchain. Prior to version 2.0.0, a cryptographic vulnerability in the TypeScript SDK's BRC-104 authentication implementation caused incorrect signature data preparation, resulting in signature incompatibility between SDK implementations and potential authentication bypass scenarios. The vulnerability was located in the Peer.ts file of the TypeScript SDK, specifically in the processInitialRequest and processInitialResponse methods where signature data is prepared for BRC-104 mutual authentication. The TypeScript SDK incorrectly prepared signature data by concatenating base64-encoded nonce strings (message.initialNonce + sessionNonce) then decoding the concatenated base64 string (base64ToBytes(concatenatedString)). This produced ~32-34 bytes of signature data instead of the correct 64 bytes. BRC-104 authentication relies on cryptographic signatures to establish mutual trust between peers. When signature data preparation is incorrect, signatures generated by the TypeScript SDK don't match those expected by Go/Python SDKs; cross-implementation authentication fails; and an attacker could potentially exploit this to bypass authentication checks. The fix in version 2.0.0 ensures all SDKs now produce identical cryptographic signatures, restoring proper mutual authentication across implementations.
- Record
EUVD-2025-207789- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-vjpq-xx5g-qvmm
5.4
BSV Blockchain SDK has an Authentication Signature Data Preparation Vulnerability
BRC-104 Authentication Signature Data Preparation Vulnerability
Summary
A critical cryptographic vulnerability in the TypeScript SDK's BRC-104 authentication implementation caused incorrect signature data preparation, resulting in signature incompatibility between SDK implementations and potential authentication bypass scenarios.
Details
The vulnerability was located in the Peer.ts file of the TypeScript SDK, specifically in the processInitialRequest and processInitialResponse methods where signature data is prepared for BRC-104 mutual authentication.
Vulnerable Code Locations:
ts-sdk/src/auth/Peer.tslines 527-531 (signing)ts-sdk/src/auth/Peer.tslines 584-590 (verification)
Root Cause: The TypeScript SDK incorrectly prepared signature data by:
- Concatenating base64-encoded nonce strings:
message.initialNonce + sessionNonce - Then decoding the concatenated base64 string:
base64ToBytes(concatenatedString)
This produced ~32-34 bytes of signature data instead of the correct 64 bytes.
Buggy Implementation (Before Fix):
// CRITICAL BUG: Concatenating base64 strings before decoding
data: Peer.base64ToBytes(message.initialNonce + sessionNonce)
Correct Implementation (After Fix): The fix properly decodes each base64 nonce individually, then concatenates the byte arrays:
data: [
...Peer.base64ToBytes(message.initialNonce),
...Peer.base64ToBytes(sessionNonce)
]
Why This is Critical: BRC-104 authentication relies on cryptographic signatures to establish mutual trust between peers. When signature data preparation is incorrect:
- Signatures generated by the TypeScript SDK don't match those expected by Go/Python SDKs
- Cross-implementation authentication fails
- An attacker could potentially exploit this to bypass authentication checks
PoC
The cross-language test suite demonstrates this vulnerability:
- Setup: Use identical nonces and cryptographic inputs across TypeScript, Python, and Go SDKs
- Vulnerable behavior: TypeScript SDK produces different signature data than Go/Python reference implementations
- Impact demonstration: Authentication attempts between TypeScript clients and Go/Python servers fail due to signature mismatch
Test Evidence:
// Buggy approach (produces ~32-34 bytes)
const concatenatedB64 = INITIAL_NONCE_B64 + SESSION_NONCE_B64;
const buggyResult = Array.from(Buffer.from(concatenatedB64, 'base64'));
// Correct approach (produces 64 bytes)
const correctResult = [...INITIAL_NONCE_BYTES, ...SESSION_NONCE_BYTES];
Base64 Padding Short Circuit Analysis:
The vulnerability occurs because base64 padding characters (=) act as early termination signals for base64 decoders. When concatenating base64 strings before decoding:
- Individual nonces: Each 44-character base64 string decodes to 32 bytes
- Concatenated string: 88-character string containing padding in the middle
- Decoding result: Base64 decoder stops at the first
=padding character, producing only 32 bytes instead of 64
Example with test data:
INITIAL_NONCE_B64:"QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUE="(44 chars → 32 bytes)SESSION_NONCE_B64:"QkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkI="(44 chars → 32 bytes)- Concatenated:
"QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUE=QkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkI=" - Buggy decode: Only 32 bytes (decoder stops at first
=) - Correct decode: 64 bytes (32 + 32, decoded separately then concatenated)
Impact
Vulnerability Type: Cryptographic signature verification bypass
Severity: Critical (CVSS 9.1 - Critical)
Affected Systems:
- TypeScript SDK clients attempting to authenticate with Go or Python SDK servers
- Any BRC-104 implementation relying on cross-SDK compatibility
- Mutual authentication protocols using the affected signature…
- Record
GHSA-vjpq-xx5g-qvmm- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L - Weakness
- CWE-573
- Updated
- 2026-11-02
NVD
5.4
The BSV Blockchain SDK is a unified TypeScript SDK for developing scalable apps on the BSV Blockchain. Prior to version 2.0.0, a cryptographic vulnerability in the TypeScript SDK's BRC-104 authentication implementation caused incorrect signature data preparation, resulting in signature incompatibility between SDK implementations and potential authentication bypass scenarios. The vulnerability was located in the Peer.ts file of the TypeScript SDK, specifically in the processInitialRequest and processInitialResponse methods where signature data is prepared for BRC-104 mutual authentication. The TypeScript SDK incorrectly prepared signature data by concatenating base64-encoded nonce strings (message.initialNonce + sessionNonce) then decoding the concatenated base64 string (base64ToBytes(concatenatedString)). This produced ~32-34 bytes of signature data instead of the correct 64 bytes. BRC-104 authentication relies on cryptographic signatures to establish mutual trust between peers. When signature data preparation is incorrect, signatures generated by the TypeScript SDK don't match those expected by Go/Python SDKs; cross-implementation authentication fails; and an attacker could potentially exploit this to bypass authentication checks. The fix in version 2.0.0 ensures all SDKs now produce identical cryptographic signatures, restoring proper mutual authentication across implementations.
- Record
CVE-2025-69287- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L - Weakness
- CWE-573
- Updated
- 2026-11-02
OSV
5.4
BSV Blockchain SDK has an Authentication Signature Data Preparation Vulnerability
The BSV Blockchain SDK is a unified TypeScript SDK for developing scalable apps on the BSV Blockchain. Prior to version 2.0.0, a cryptographic vulnerability in the TypeScript SDK's BRC-104 authentication implementation caused incorrect signature data preparation, resulting in signature incompatibility between SDK implementations and potential authentication bypass scenarios. The vulnerability was located in the Peer.ts file of the TypeScript SDK, specifically in the processInitialRequest and processInitialResponse methods where signature data is prepared for BRC-104 mutual authentication. The TypeScript SDK incorrectly prepared signature data by concatenating base64-encoded nonce strings (message.initialNonce + sessionNonce) then decoding the concatenated base64 string (base64ToBytes(concatenatedString)). This produced ~32-34 bytes of signature data instead of the correct 64 bytes. BRC-104 authentication relies on cryptographic signatures to establish mutual trust between peers. When signature data preparation is incorrect, signatures generated by the TypeScript SDK don't match those expected by Go/Python SDKs; cross-implementation authentication fails; and an attacker could potentially exploit this to bypass authentication checks. The fix in version 2.0.0 ensures all SDKs now produce identical cryptographic signatures, restoring proper mutual authentication across implementations.
- Record
CVE-2025-69287- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L - Weakness
- CWE-573
- Updated
- 2026-11-02
OSVGHSA-vjpq-xx5g-qvmm
5.4
BSV Blockchain SDK has an Authentication Signature Data Preparation Vulnerability
BRC-104 Authentication Signature Data Preparation Vulnerability
Summary
A critical cryptographic vulnerability in the TypeScript SDK's BRC-104 authentication implementation caused incorrect signature data preparation, resulting in signature incompatibility between SDK implementations and potential authentication bypass scenarios.
Details
The vulnerability was located in the Peer.ts file of the TypeScript SDK, specifically in the processInitialRequest and processInitialResponse methods where signature data is prepared for BRC-104 mutual authentication.
Vulnerable Code Locations:
ts-sdk/src/auth/Peer.tslines 527-531 (signing)ts-sdk/src/auth/Peer.tslines 584-590 (verification)
Root Cause: The TypeScript SDK incorrectly prepared signature data by:
- Concatenating base64-encoded nonce strings:
message.initialNonce + sessionNonce - Then decoding the concatenated base64 string:
base64ToBytes(concatenatedString)
This produced ~32-34 bytes of signature data instead of the correct 64 bytes.
Buggy Implementation (Before Fix):
// CRITICAL BUG: Concatenating base64 strings before decoding
data: Peer.base64ToBytes(message.initialNonce + sessionNonce)
Correct Implementation (After Fix): The fix properly decodes each base64 nonce individually, then concatenates the byte arrays:
data: [
...Peer.base64ToBytes(message.initialNonce),
...Peer.base64ToBytes(sessionNonce)
]
Why This is Critical: BRC-104 authentication relies on cryptographic signatures to establish mutual trust between peers. When signature data preparation is incorrect:
- Signatures generated by the TypeScript SDK don't match those expected by Go/Python SDKs
- Cross-implementation authentication fails
- An attacker could potentially exploit this to bypass authentication checks
PoC
The cross-language test suite demonstrates this vulnerability:
- Setup: Use identical nonces and cryptographic inputs across TypeScript, Python, and Go SDKs
- Vulnerable behavior: TypeScript SDK produces different signature data than Go/Python reference implementations
- Impact demonstration: Authentication attempts between TypeScript clients and Go/Python servers fail due to signature mismatch
Test Evidence:
// Buggy approach (produces ~32-34 bytes)
const concatenatedB64 = INITIAL_NONCE_B64 + SESSION_NONCE_B64;
const buggyResult = Array.from(Buffer.from(concatenatedB64, 'base64'));
// Correct approach (produces 64 bytes)
const correctResult = [...INITIAL_NONCE_BYTES, ...SESSION_NONCE_BYTES];
Base64 Padding Short Circuit Analysis:
The vulnerability occurs because base64 padding characters (=) act as early termination signals for base64 decoders. When concatenating base64 strings before decoding:
- Individual nonces: Each 44-character base64 string decodes to 32 bytes
- Concatenated string: 88-character string containing padding in the middle
- Decoding result: Base64 decoder stops at the first
=padding character, producing only 32 bytes instead of 64
Example with test data:
INITIAL_NONCE_B64:"QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUE="(44 chars → 32 bytes)SESSION_NONCE_B64:"QkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkI="(44 chars → 32 bytes)- Concatenated:
"QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUE=QkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkI=" - Buggy decode: Only 32 bytes (decoder stops at first
=) - Correct decode: 64 bytes (32 + 32, decoded separately then concatenated)
Impact
Vulnerability Type: Cryptographic signature verification bypass
Severity: Critical (CVSS 9.1 - Critical)
Affected Systems:
- TypeScript SDK clients attempting to authenticate with Go or Python SDK servers
- Any BRC-104 implementation relying on cross-SDK compatibility
- Mutual authentication protocols using the affected signature…
- Record
GHSA-vjpq-xx5g-qvmm- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L - Weakness
- CWE-573
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
@bsv/sdknpm |
before 2.0.0 | 2.0.0 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-69287 is a medium vulnerability (CVSS 5.4) in Bsv-blockchain Ts-sdk, published February 17, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.34%, the 27th percentile. Fixed in @bsv/sdk 2.0.0.
References
github.com/bsv-blockchain/ts-sdk/security/advisories/GHSA-vjpq-xx5g-qvmm
github.com/bsv-blockchain/ts-sdk/commit/d8cf6930028372079d977138ae9eaa03ae2f50bb
nvd.nist.gov/vuln/detail/CVE-2025-69287
github.com/advisories/GHSA-vjpq-xx5g-qvmm
github.com/CVEProject/cvelistV5/tree/main/cves/2025/69xxx/CVE-2025-69287.json
github.com/bsv-blockchain/ts-sdk
Left out here: the rest of 2 source descriptions. The JSON record has them.