{"id":"CVE-2022-24759","aliases":["CVE-2022-24759","GHSA-j3ff-xp6c-6gcc"],"related":[],"kind":"vulnerability","state":"published","title":"Failure to validate signature during handshake in @chainsafe/libp2p-noise","summary":"`@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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"`@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.","source":"cvelist"},{"lang":"en","text":"### Impact\n`@chainsafe/libp2p-noise` before 4.1.2 and 5.0.3 was not correctly validating signatures during the handshake process.\nThis may allow a man-in-the-middle to pose as other peers and get those peers banned.\n\n### Patches\nUsers should upgrade to 4.1.2 or 5.0.3\n\n### Workarounds\nNo workarounds, just patch upgrade\n\n### References\nhttps://github.com/ChainSafe/js-libp2p-noise/pull/130","format":"markdown","source":"ghsa"},{"lang":"es","text":"\"@chainsafe/libp2p-noise\" contiene la implementación en TypeScript del protocolo noise, un protocolo de encriptación usado en libp2p. \"@chainsafe/libp2p-noise\" versiones anteriores a 4.1.2 y 5.0.3 no comprueba correctamente las firmas durante el proceso de handshake. Esto puede permitir a un \"man-in-the-middle\" hacerse pasar por otros peers y consiga que esos peers sean baneados. Los usuarios deben actualizar a versión 4.1.2 o 5.0.3 para recibir un parche. Actualmente no se presentan medidas de mitigación conocidas","source":"nvd"}],"published":"2022-03-17T16:40:11.000Z","modified":"2026-06-17T04:32:27.293Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","score":7.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:P","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-347"],"affected":[{"ranges":[{"version":"< 4.1.2","status":"affected"},{"version":">= 5.0.0, < 5.0.3","status":"affected"}],"vendor":"ChainSafe","product":"js-libp2p-noise","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.1.2"}],"ecosystem":"npm","package":"@chainsafe/libp2p-noise","purl":"pkg:npm/%40chainsafe/libp2p-noise","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.0.3"}],"ecosystem":"npm","package":"@chainsafe/libp2p-noise","purl":"pkg:npm/%40chainsafe/libp2p-noise","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.1.2"},{"status":"affected","introduced":"5.0.0","fixed":"5.0.3"}],"vendor":"chainsafe","product":"js-libp2p-noise","cpe":"cpe:2.3:a:chainsafe:js-libp2p-noise:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ChainSafe/js-libp2p-noise/security/advisories/GHSA-j3ff-xp6c-6gcc","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ChainSafe/js-libp2p-noise/pull/130","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ChainSafe/js-libp2p-noise/releases/tag/v5.0.3","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24759","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ChainSafe","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T14:08:49.865Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-24759","url":"https://www.cve.org/CVERecord?id=CVE-2022-24759","licence":"CVE Terms of Use","modified":"2025-04-23T18:46:39.631Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j3ff-xp6c-6gcc","url":"https://github.com/advisories/GHSA-j3ff-xp6c-6gcc","licence":"CC-BY-4.0","modified":"2023-11-08T04:08:35.429Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-24759","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24759","licence":"Public domain","modified":"2026-06-17T04:32:27.293Z"}],"updatedAt":"2026-11-25T22:58:10.153Z","epss":{"score":0.00499,"percentile":0.4434,"date":"2026-12-01T12:00:22.000Z"}}