{"id":"CVE-2021-32738","aliases":["CVE-2021-32738","GHSA-6cgh-hjpw-q3gq"],"related":[],"kind":"vulnerability","state":"published","title":"Utils.readChallengeTx does not verify the server account signature","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"The `Utils.readChallengeTx` function used in [SEP-10 Stellar Web Authentication](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0010.md) states in its function documentation that it reads and validates the challenge transaction including verifying that the `serverAccountID` has signed the transaction. The function does not verify that the server has signed the transaction and has been fixed so that it does in v8.2.3.\n\nApplications 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.\n\nApplications calling `Utils.readChallengeTx` should update to v8.2.3 to ensure that the challenge transaction is completely valid and signed by the server creating the challenge transaction.","format":"markdown","source":"ghsa"},{"lang":"es","text":"js-stellar-sdk es una biblioteca de Javascript para comunicarse con un servidor Stellar Horizon. La función \"Utils.readChallengeTx\" usada en SEP-10 Stellar Web Authentication declara en la documentación de su función que lee y comprueba la transacción del reto incluyendo la comprobación de que el \"serverAccountID\" ha firmado la transacción. En js-stellar-sdk versiones anteriores a 8.2.3, la función no comprueba que el servidor haya firmado la transacción. Las aplicaciones que también usaban \"Utils.verifyChallengeTxThreshold\" o \"Utils.verifyChallengeTxSigners\" para comprobar las firmas, incluyendo la firma del servidor en la transacción de desafío, no se ven afectadas ya que esas funciones comprueban que el servidor ha firmado la transacción. Las aplicaciones que llaman a \"Utils.readChallengeTx\" deberían actualizar a la versión 8.2.3, la primera versión con un parche para esta vulnerabilidad, para asegurarse de que la transacción de desafío es completamente válida y está firmada por el servidor que crea la transacción de desafío","source":"nvd"}],"published":"2021-07-02T18:15:11.000Z","modified":"2026-07-08T06:29:28.803Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:N/I:P/A:N","score":4,"rating":"MEDIUM"}],"cwes":["CWE-287","CWE-347"],"affected":[{"ranges":[{"version":"< 8.2.3","status":"affected"}],"vendor":"stellar","product":"js-stellar-sdk","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"8.2.3"}],"ecosystem":"npm","package":"stellar-sdk","purl":"pkg:npm/stellar-sdk","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"8.2.3"}],"vendor":"stellar","product":"js-stellar-sdk","cpe":"cpe:2.3:a:stellar:js-stellar-sdk:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/stellar/js-stellar-sdk/security/advisories/GHSA-6cgh-hjpw-q3gq","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/stellar/js-stellar-sdk/releases/tag/v8.2.3","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32738","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/stellar/js-stellar-sdk/commit/6f0bb889c2d10b431ddd5f4a1bcdd519c80430b3","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-32738","url":"https://www.cve.org/CVERecord?id=CVE-2021-32738","licence":"CVE Terms of Use","modified":"2024-08-03T23:33:54.900Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6cgh-hjpw-q3gq","url":"https://github.com/advisories/GHSA-6cgh-hjpw-q3gq","licence":"CC-BY-4.0","modified":"2026-07-08T06:29:28.803Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-32738","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32738","licence":"Public domain","modified":"2026-06-17T03:53:31.930Z"}],"updatedAt":"2026-11-25T22:58:02.426Z","epss":{"score":0.00597,"percentile":0.49949,"date":"2026-12-01T12:00:22.000Z"}}