Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. stellar-sdk
  4. ›
  5. CVE-2021-32738

CVE-2021-32738: Improper Authentication

July 2, 2021 (updated July 6, 2021)

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, 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, 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.

References

  • github.com/advisories/GHSA-6cgh-hjpw-q3gq
  • github.com/stellar/js-stellar-sdk/commit/6f0bb889c2d10b431ddd5f4a1bcdd519c80430b3
  • github.com/stellar/js-stellar-sdk/releases/tag/v8.2.3
  • github.com/stellar/js-stellar-sdk/security/advisories/GHSA-6cgh-hjpw-q3gq
  • nvd.nist.gov/vuln/detail/CVE-2021-32738

Code Behaviors & Features

Detect and mitigate CVE-2021-32738 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 8.2.3

Fixed versions

  • 8.2.3

Solution

Upgrade to version 8.2.3 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

npm/stellar-sdk/CVE-2021-32738.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:54 +0000.