# GHSA-rch7-f4h5-x9rj: Identity Spoofing in libp2p-secio

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2019-08-23T00:04:52.000Z
- Modified: 2021-08-17T21:32:42.000Z
- Weaknesses: CWE-290

## Description

Affected versions of `libp2p-secio` does not correctly verify that the `PeerId` of `DstPeer` matches the `PeerId` discovered in the crypto handshake, resulting in a high severity identity spoofing vulnerability. 


## Recommendation

Update to version 0.9.0 or later.

(As written by GitHub Advisory Database.)

## Affected

- libp2p-secio (npm): before 0.9.0

## References

- <https://github.com/libp2p/js-libp2p-secio/pull/95> (web)
- <https://snyk.io/vuln/npm:libp2p-secio:20180115> (web)
- <https://www.npmjs.com/advisories/558> (web)

## Sources

- GitHub Advisory Database: [GHSA-rch7-f4h5-x9rj](https://github.com/advisories/GHSA-rch7-f4h5-x9rj), CC-BY-4.0, modified 2021-08-17

---

Page: https://cve.day/GHSA-rch7-f4h5-x9rj · Whole record: https://cve.day/GHSA-rch7-f4h5-x9rj.json · Rebuilt by cve.day 2026-11-25T22:56:46.448Z
