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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 49% of CVEs (2026-12-01)
- Published: 2021-07-02T18:15:11.000Z
- Modified: 2026-07-08T06:29:28.803Z
- Also known as: GHSA-6cgh-hjpw-q3gq
- Weaknesses: CWE-287, CWE-347
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- stellar js-stellar-sdk: < 8.2.3; before 8.2.3
- stellar-sdk (npm): before 8.2.3

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/stellar/js-stellar-sdk/security/advisories/GHSA-6cgh-hjpw-q3gq> (third-party-advisory, web)
- <https://github.com/stellar/js-stellar-sdk/releases/tag/v8.2.3> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32738> (advisory)
- <https://github.com/stellar/js-stellar-sdk/commit/6f0bb889c2d10b431ddd5f4a1bcdd519c80430b3> (web)

## Sources

- CVE List: [CVE-2021-32738](https://www.cve.org/CVERecord?id=CVE-2021-32738), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-6cgh-hjpw-q3gq](https://github.com/advisories/GHSA-6cgh-hjpw-q3gq), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-32738](https://nvd.nist.gov/vuln/detail/CVE-2021-32738), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-32738 · Whole record: https://cve.day/CVE-2021-32738.json · Rebuilt by cve.day 2026-11-25T22:58:02.426Z
