CVE-2021-32738: js-stellar-sdk - Authentication Bypass
- Cve: CVE-2021-32738
- Name: js-stellar-sdk - Authentication Bypass
- Description: js-stellar-sdk is a Javascript library for communicating with a Stellar Horizon server. The `Utils.readChallengeTx` function used in SEP-10 Stellar Web Authentication states in its function documentation that it reads and validates the challenge transaction including verifying that the `serverAccountID` has signed the transaction. In js-stellar-sdk before version 8.2.3, the function does not verify that the server has signed the transaction. Applications that also used `Utils.verifyChallengeTxThreshold` or `Utils.verifyChallengeTxSigners` to verify the signatures including the server signature on the challenge transaction are unaffected as those functions verify the server signed the transaction. Applications calling `Utils.readChallengeTx` should update to version 8.2.3, the first version with a patch for this vulnerability, to ensure that the challenge transaction is completely valid and signed by the server creating the challenge transaction.
- Impact: Attackers can forge challenge transactions, potentially leading to impersonation or unauthorized access in Stellar Web Authentication.
- Remediation: Update to version 8.2.3 or later to ensure complete signature verification.
- Vulnerability type: broken_authentication
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- Epss score: 0.00514
- Epss percentile: 0.4436
- Assignee: [email protected]
- Published at: 2021-07-02T19:15:08Z
- Age in days: 1971
- Modified at: 2026-06-17T03:53:31Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-32738
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-287 | Improper Authentication |
| CWE-347 | Improper Verification of Cryptographic Signature |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/stellar/js-stellar-sdk/releases/tag/v8.2.3 | nvd | Release Notes, Third Party Advisory |
| https://github.com/stellar/js-stellar-sdk/security/advisories/GHSA-6cgh-hjpw-q3gq | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| stellar:js-stellar-sdk | < 8.2.3 | no | nvd | /v1/products/stellar/js-stellar-sdk |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| stellar/js-stellar-sdk | commit, fix, releases, security_advisory | yes | /v1/repositories/stellar/js-stellar-sdk |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts