Intent-Code Divergence
Medium
- Confidence
- 97% confidence
- Finding
- The function and its documentation claim to securely wipe a string from memory, but in JavaScript strings are immutable, so returning an empty string does not erase the original secret from memory. In a wallet/security utility context, this can mislead developers into believing mnemonics, passwords, or private material were cleared when they may still remain in memory, logs, heap snapshots, or crash dumps longer than expected.
