Quick answers
- Is CVE-2026-86038 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-86038 being exploited in the wild.
- How severe is CVE-2026-86038?
- High severity, with a CVSS score of 7.5, published 17 September 2026.
- Which products and versions are affected?
- Libp2p Gossipsub 15.0.0 and later; @libp2p/gossipsub (npm) >= 15.0.0, < 16.0.5, SEMVER:introduced=15.0.0,fixed=16.0.5.
- Is there a fix for CVE-2026-86038?
- Yes. @libp2p/gossipsub (npm): upgrade to 16.0.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-86038 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-86038?
- Check whether you run Libp2p Gossipsub or @libp2p/gossipsub (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- @libp2p/gossipsub (npm): upgrade to 16.0.5 or later
npm install @libp2p/gossipsub@16.0.5
Technical details
The vulnerability exists in the `validateToRawMessage` function in `packages/gossipsub/src/utils/buildRawMessage.ts`. When validating signed messages with StrictSign policy, the code checks that a supplied message public key matches the peer ID's public key—but this check is skipped for RSA peer IDs, which do not inline their public key in the peer ID representation. An attacker can set the `from` field to a victim's RSA peer ID, sign the message with their own private key, include their own public key in `msg.key`, and the signature will validate despite the forged origin. The missing invariant is `peerIdFromPublicKey(publicKey).equals(fromPeerId)`. This is a message authentication bypass under the default StrictSign signature policy affecting gossipsub v15.0.0 and later. A patch is required to enforce key-to-peer-ID binding for all peer ID types.
Affected products
- libp2p Gossipsub 15.0.0 and later
Identifiers
- CVE-2026-86038
- GHSA-c3gv-825q-fvmp
Timeline
- 2026-09-17: disclosed