{"id":"CVE-2024-41945","summary":"The fuels-ts typescript SDK has no awareness of to-be-spent transactions","details":"fuels-ts is a library for interacting with Fuel v2.  The typescript SDK has no awareness of to-be-spent transactions causing some transactions to fail or silently get pruned as they are funded with already used UTXOs. The problem occurs, because the `fund` function in `fuels-ts/packages/account/src/account.ts` gets the needed ressources statelessly with the function `getResourcesToSpend` without taking into consideration already used UTXOs. This issue will lead to unexpected SDK behaviour, such as a transaction not getting included in the `txpool` / in a block or a previous transaction silently getting removed from the `txpool` and replaced with a new one.","aliases":["GHSA-3jcg-vx7f-j6qf"],"modified":"2026-08-12T03:51:25.894843605Z","published":"2024-07-30T19:42:06.663Z","database_specific":{"cwe_ids":["CWE-20"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41945.json","cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41945.json"},{"type":"ADVISORY","url":"https://github.com/FuelLabs/fuels-ts/security/advisories/GHSA-3jcg-vx7f-j6qf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41945"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/fuellabs/fuels-ts","events":[{"introduced":"0"},{"fixed":"bd1cbd90c2fa4c0bbef36b442c18778af72b3a89"}],"database_specific":{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"0"},{"fixed":"0.93.0"}]}}],"versions":["v0.92.1","v0.92.0","v0.91.0","v0.90.0","v0.89.2","v0.89.1","v0.89.0","v0.88.1","v0.88.0","v0.87.0","v0.86.0","v0.85.0","v0.84.0","v0.83.0","v0.82.0","v0.81.0","v0.80.0","v0.76.5","v0.79.0","v0.76.4","v0.78.0","v0.76.3","v0.76.2","v0.76.1","v0.76.0","v0.77.0","v0.75.0","v0.74.0","v0.73.0","v0.72.0","v0.71.1","v0.71.0","v0.70.1","v0.69.1","v0.69.0","v0.68.0","v0.67.0","v0.66.1","v0.66.0","v0.65.0","v0.64.1","v0.64.0","v0.63.0","v0.62.0","v0.61.0","v0.60.0","v0.59.0","v0.58.0","v0.57.0","v0.56.1","v0.56.0","v0.55.0","v0.54.1","v0.54.0","v0.53.0","v0.52.0","v0.51.0","v0.50.0","v0.49.1","v0.49.0","v0.48.2","v0.48.1","v0.48.0","v0.47.0","v0.46.0","v0.45.0","v0.44.2","v0.44.1","v0.44.0","v0.43.1","v0.43.0","v0.42.0","v0.41.0","v0.40.0","v0.39.1","v0.39.0","v0.38.1","v0.38.0","v0.37.1","v0.37.0","v0.36.0","v0.35.0","v0.34.1","v0.34.0","v0.33.0","v0.32.0","v0.31.0","v0.30.0","v0.29.1","v0.29.0","v0.28.1","v0.28.0","v0.27.0","v0.26.0","v0.25.1","v0.25.0","v0.24.2","v0.24.1","v0.24.0","v0.23.0","v0.22.2","v0.22.1","v0.22.0","v0.21.2","v0.21.1","v0.21.0","v0.20.0","v0.19.0","v0.17.0","v0.16.0","v0.15.0","v0.14.0","v0.13.0","v0.12.0","v0.11.0","v0.10.0","v0.8.0","v0.7.0","v0.6.0","v0.5.0","v0.4.0","v0.3.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-41945.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N"}]}