Skip to content

fix(eth-json-rpc-middleware): validate typed-data keys on eth_signTypedData_v3 - #9810

Open
SashaMIT wants to merge 1 commit into
MetaMask:mainfrom
SashaMIT:fix/typed-data-v3-validate-keys
Open

fix(eth-json-rpc-middleware): validate typed-data keys on eth_signTypedData_v3#9810
SashaMIT wants to merge 1 commit into
MetaMask:mainfrom
SashaMIT:fix/typed-data-v3-validate-keys

Conversation

@SashaMIT

@SashaMIT SashaMIT commented Aug 8, 2026

Copy link
Copy Markdown

Summary

  • eth_signTypedData_v4 already calls validateTypedMessageKeys after normalize; eth_signTypedData_v3 skipped it.
  • Add the same check so V3 rejects EIP-712 payloads with extraneous top-level keys before processTypedMessageV3.
  • Mirror the existing V4 unit test for extraneous keys on the V3 path.

Test plan

  • Added should throw if message data contains extraneous keys under signTypedDataV3
  • CI: @metamask/eth-json-rpc-middleware jest suite

Made with Cursor

…edData_v3

Parity with eth_signTypedData_v4: reject EIP-712 payloads that carry
extraneous top-level keys before processTypedMessageV3 runs.

Signed-off-by: Sasha Mitchell <sash.t.mitchell@gmail.com>
@SashaMIT
SashaMIT requested review from a team as code owners August 8, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant