CVE-2026-46679: Kad Dht Insufficient Initial Peers

The query manager incorrectly initiates queries by selecting only 'd' disjoint paths closest peers instead of selecting 'k' (kBucketSize) closest peers and dividing them evenly into 'd' buckets. This violates the robustness of the S/Kademlia spec, requiring an attacker to generate far fewer malicious nodes to orchestrate an eclipse attack on the DHT. To fix

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0TS
greprules fetch cve-2026-46679-kad-dht-insufficient-initial-peers --engine opengrep

Description

The query manager incorrectly initiates queries by selecting only 'd' disjoint paths closest peers instead of selecting 'k' (kBucketSize) closest peers and dividing them evenly into 'd' buckets. This violates the robustness of the S/Kademlia spec, requiring an attacker to generate far fewer malicious nodes to orchestrate an eclipse attack on the DHT. To fix