Skip to content
OpenAdvisories
High · 8.1 CVE-2022-24759 EUVD-2022-1450GHSA-j3ff-xp6c-6gcc

Failure to validate signature during handshake in @chainsafe/libp2p-noise

Published Mar 17, 2022 · Updated Apr 23, 2025 · Assigned by GitHub_M

Description

`@chainsafe/libp2p-noise` contains TypeScript implementation of noise protocol, an encryption protocol used in libp2p. `@chainsafe/libp2p-noise` before 4.1.2 and 5.0.3 does not correctly validate signatures during the handshake process. This may allow a man-in-the-middle to pose as other peers and get those peers banned. Users should upgrade to version 4.1.2 or 5.0.3 to receive a patch. There are currently no known workarounds.

Affected products

VendorProductAffectedFixed
ChainSafe js-libp2p-noise < 4.1.2, >= 5.0.0, < 5.0.3 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @chainsafe/libp2p-noise < 4.1.2 4.1.2 GHSA-j3ff-xp6c-6gcc
npm @chainsafe/libp2p-noise >= 5.0.0, < 5.0.3 5.0.3 GHSA-j3ff-xp6c-6gcc

References