<!-- XE-16942 · [Low] Gossip validators accept + relay blocks/votes with unknown JSON fields that every subscriber silently drops · testnet -->
*Markdown view of <https://bounty.xe.network/XE-16942>. The page is the record; this is the same page for reading.*

XE-16942 · Bounty

# \[Low\] Gossip validators accept \+ relay blocks/votes with unknown JSON fields that every subscriber silently drops

Closed · duplicate
—claimed Minor
[xe#687](https://github.com/xeprotocol/xe/issues/687)
filed 2026-11-17 07:54 UTC
by kecedanzz77-bit

Verdict
:   Duplicate

Tier
:   —

Claimed
:   Minor

Area
:   P2P / sync

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-22 23:26 UTC

Told
:   2026-11-22 23:26 UTC

### Patches

None linked.

### History

- [770249](https://bounty.xe.network/log/770249) 2026-11-22 23:26 UTC reply.mirror\_failed
- [769852](https://bounty.xe.network/log/769852) 2026-11-22 23:26 UTC proposal.adopted
- [769851](https://bounty.xe.network/log/769851) 2026-11-22 23:26 UTC reply.sent
- [769850](https://bounty.xe.network/log/769850) 2026-11-22 23:26 UTC ticket.status new → closed
- [768807](https://bounty.xe.network/log/768807) 2026-11-22 23:25 UTC proposal.adopted
- [768806](https://bounty.xe.network/log/768806) 2026-11-22 23:25 UTC ticket.facts area
- [768805](https://bounty.xe.network/log/768805) 2026-11-22 23:25 UTC proposal.adopted
- [768804](https://bounty.xe.network/log/768804) 2026-11-22 23:25 UTC ticket.facts
- [768803](https://bounty.xe.network/log/768803) 2026-11-22 23:25 UTC proposal.adopted
- [768802](https://bounty.xe.network/log/768802) 2026-11-22 23:25 UTC ticket.facts
- [766639](https://bounty.xe.network/log/766639) 2026-11-22 23:17 UTC note.added
- [766638](https://bounty.xe.network/log/766638) 2026-11-22 23:17 UTC proposal.created

[Full history](https://bounty.xe.network/log?ref=XE-16942) · [JSON](https://bounty.xe.network/v1/tickets/XE-16942) · [markdown](https://bounty.xe.network/XE-16942.md)

### Report

## Summary

Gossip validators decode Block/Vote messages with plain `json.Unmarshal` (unknown fields ignored), while the `Subscribe` paths decode with `DisallowUnknownFields()`. A valid block/vote (correct hash, valid signature/PoW) carrying one extra JSON field is therefore **accepted and relayed by every node but processed by none** — silent relay-without-processing, plus mesh bandwidth waste and a forward-compatibility trap.

## Root Cause

- `blockValidator` (`net/gossip_validate.go:63-66`) and `voteValidator` (`:106-109`) decode with plain `json.Unmarshal(msg.Data, &bm)` / `&vm` — unknown fields are ignored, so a tainted-but-valid message passes validation and is relayed.
- The Block `Subscribe` path (`net/gossip.go:139-141`) and Vote `Subscribe` path (`:209-211`) decode with `dec.DisallowUnknownFields()` — the same message fails decoding and is silently dropped (`continue` after a warn log).
- The other four topics (statechain, marketplace, directory, certificate) use plain unmarshal on **both** sides (`net/gossip.go:348, 444, 502`) and are unaffected — only Block/Vote diverge.

## Impact

- **Silent relay-without-processing:** a tainted block/vote propagates mesh-wide, consuming relay bandwidth (up to `MaxGossipMessageSize = 262144` bytes/message, `net/gossip.go:27`, × fanout) while contributing nothing, and earning the sender peer-score for messages no one processes.
- **Vote suppression (weak angle):** a relay can append a junk field to someone else's vote without invalidating its signature (the signature covers the signing bytes, not the JSON envelope). Exploiting this for suppression needs eclipse-level positioning, so this angle is weak.
- **Forward-compatibility trap (strongest angle):** any future protocol extension that adds a field to Block/Vote JSON would silently break gossip ingestion network-wide — old nodes would relay the new messages but drop them on subscribe — instead of failing cleanly at validation.

Severity Low: no crash, corruption, or fund loss.

## Verification

Executed in-package test (valid block/vote with one extra field injected textually — a `map[string]any` round-trip would corrupt int64 timestamps and break the hash/signature):

```
tainted: validator=Accept, strict decode error=json: unknown field "future_extension_field"
```

Logged for both the block and the vote case; plain (untainted) controls are accepted by both paths.

## Note on related reports

Searched "DisallowUnknownFields" (0 hits) and "gossip validator unknown fields" (0 hits). #552/#394 report the same *symptom* (validator Accepts, Subscribe silently drops) but a **different mechanism** — the `len(b.Signature) != 128` check dropping multisig blocks — not the decode-strictness divergence reported here.

## Suggested fix

Match decode strictness on both sides: add `DisallowUnknownFields()` to the validators (fail tainted messages at validation, with peer-score consequences), or drop it from the subscribers.

### Thread

**Joseph Denne**team2026-11-22 23:26 UTCdesk

Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the
first verifiable submission, so this one closes as a duplicate. If you believe it is a different
bug, file a new report that links https://bounty.xe.network/XE-16942 and says what differs; it is read like any other.
