Skip to content

Commit fa03cc8

Browse files
fix(AssetsController): prevent websocket metadata poisoning by stopping assetsInfo publication during balance updates; metadata is now sourced from the Token API. Bump dependencies for transaction-controller, core-backend, and config-registry-controller.
1 parent 60b5c76 commit fa03cc8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/assets-controller/CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111

12-
- Stop publishing asset metadata (`assetsInfo`) from the websocket/account-activity balance-update path (`AccountActivityDataSource`); only balances are published and metadata is resolved from the Token API (the metadata source of truth) by `TokenDataSource` in the same pipeline pass
13-
- The websocket payload's asset `unit` echoes on-chain contract symbols, which are attacker-controlled for airdropped tokens (e.g. scam-URL token names). Publishing them poisoned `state.assetsInfo`, which marked spam assets as "known" and permanently exempted them from spam filtering on subsequent updates. The payload's `decimals` is still used to convert raw amounts to human-readable balances.
1412
- Bump `@metamask/transaction-controller` from `^69.4.0` to `^69.5.0` ([#9780](https://github.com/MetaMask/core/pull/9780))
1513
- Bump `@metamask/core-backend` from `^8.1.0` to `^8.1.1` ([#9779](https://github.com/MetaMask/core/pull/9779))
1614
- Bump `@metamask/config-registry-controller` from `^2.0.0` to `^2.0.1` ([#9779](https://github.com/MetaMask/core/pull/9779))
@@ -22,6 +20,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2220
- Bump `@metamask/keyring-internal-api` from `^11.0.2` to `^12.0.0` ([#9754](https://github.com/MetaMask/core/pull/9754))
2321
- Bump `@metamask/keyring-snap-client` from `^9.2.1` to `^10.0.0` ([#9754](https://github.com/MetaMask/core/pull/9754))
2422

23+
### Fixed
24+
25+
- Stop publishing `assetsInfo` from websocket balance updates; metadata is now resolved from the Token API by `TokenDataSource` to prevent WS poisoning (incorrect WS symbols and no detection metadata). Prevents bypassing token detection spam filtering ([#9790](https://github.com/MetaMask/core/pull/9790))
26+
2527
## [13.1.0]
2628

2729
### Added

0 commit comments

Comments
 (0)