CVE-2022-24759Chainsafe Js-libp2p-noise
High 7.4 No auth needed
Follow: this CVE · Chainsafe · Chainsafe Js-libp2p-noise We alert you by email or Slack (account required).
- Priority
- 59
- CVSS 3.1
- 7.4
- EPSS
- 0.5% probability of exploitation in 30 days · percentile 36
- Auth required
- No
- Published
- Mar 17, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-347
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
What happens
`@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.
What to do
- Apply the vendor's security update for Js-libp2p-noise.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | @chainsafe/libp2p-noise |
< 4.1.2 |
4.1.2 |
npm install @chainsafe/libp2p-noise@4.1.2 |
| npm | @chainsafe/libp2p-noise |
≥ 5.0.0 < 5.0.3 |
5.0.3 |
npm install @chainsafe/libp2p-noise@5.0.3 |
Per OSV / GitHub Advisories (GHSA-j3ff-xp6c-6gcc). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| chainsafe | js-libp2p-noise | < 4.1.2 |
| chainsafe | js-libp2p-noise | ≥ 5.0.0 < 5.0.3 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory