VDB
Sign up
MEDIUM5.9

PYSEC-2026-806

Regular expression denial of service in eth-account

Quick fix

PYSEC-2026-806 — eth-account: upgrade to the fixed version with the command below.

pip install --upgrade 'eth-account>=0.5.9'

Details

An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the eth-account PyPI package, when an attacker is able to supply arbitrary input to the encode_structured_data method

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/eth-account
Introduced in: 0Fixed in: 0.5.9
Fixpip install --upgrade 'eth-account>=0.5.9'

References