CVE-2024-41945 The fuels-ts typescript SDK has no awareness of to-be-spent transactions
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
Description
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| fuel-ts @fuel-ts/account(npm) | < 0.93.0 | 0.93.0 | Fixed |
| FuelLabs fuels-ts | < 0.93.0; = < 0.93.0 | 0.93.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| fuel-ts @fuel-ts/account(npm) | < 0.93.0 | 0.93.0 |
| FuelLabs fuels-ts | = < 0.93.0 | No fix listed |
| FuelLabs fuels-ts | < 0.93.0 | 0.93.0 |
References
- https://github.com/FuelLabs/fuels-ts/security/advisories/GHSA-3jcg-vx7f-j6qf vendor-advisory
- github.com patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product