Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

ethereum/eth-account
main @ 20757b1
3
Fixes
1
CVEs
MEDIUM
Peak severity
Highlights
ReDoS: 1 prior fix. Scrutinize any change in this area.
eth_account._utils.structured_data.validation: most-fixed (1 issue). Treat as high-risk during review.
0 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

ReDoS: The validation of EIP-712 structured data types is susceptible to exponential backtracking via malicious input, leading to application-level denial of service. Developers must ensure any modified type-parsing patterns avoid catastrophic backtracking.
Weak Cryptographic Algorithm: Key derivation functions must default to computationally expensive algorithms like scrypt rather than weaker functions like PBKDF2 to resist offline brute-force attacks on exported keystores.
Signature Malleability: Permissive transaction dictionary validation can lead to malformed or duplicate transaction signing. Enforcing strict field structures prevents replay attacks and unexpected serialization states.