VDB
Sign up
CRITICAL9.1

PYSEC-2025-89

Quick fix

PYSEC-2025-89 — cashu: upgrade to the fixed version with the command below.

pip install --upgrade 'cashu>=0.18.0'

Details

NUT-14 allows cashu tokens to be created with a preimage hash. However, nutshell (cashubtc/nuts) before 0.18.0 do not validate the size of preimage when the token is spent. The preimage is stored by the mint and attacker can exploit this vulnerability to fill the mint's db nd disk with arbitrary data.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/cashu
Introduced in: 0Fixed in: 0.18.0
Fixpip install --upgrade 'cashu>=0.18.0'

References