CVE-2026-86038: libp2p: Gossipsub StrictSign accepts attacker-signed messages as a victim RSA peer ID
@libp2p/gossipsub StrictSign validation does not bind a supplied message public key to the claimed from peer ID when from is an RSA-style peer ID that does not inline its public key. An attacker can set from to a victim RSA peer ID, sign the message with the attacker’s own private key, include the attacker’s public key in msg.key, and have the message accepted as a valid signed message from the victim.
References
- github.com/advisories/GHSA-c3gv-825q-fvmp
- github.com/libp2p/js-libp2p/commit/cec2b1f349d130065e561349a0336a239528267f
- github.com/libp2p/js-libp2p/pull/3569
- github.com/libp2p/js-libp2p/releases/tag/gossipsub-v16.0.5
- github.com/libp2p/js-libp2p/security/advisories/GHSA-c3gv-825q-fvmp
- nvd.nist.gov/vuln/detail/CVE-2026-86038
Code Behaviors & Features
Detect and mitigate CVE-2026-86038 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →