{
  "schema_version": "1.4.0",
  "id": "GHSA-rch7-f4h5-x9rj",
  "modified": "2021-08-17T21:32:42Z",
  "published": "2019-08-23T00:04:52Z",
  "aliases": [],
  "summary": "Identity Spoofing in libp2p-secio",
  "details": "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. \n\n\n## Recommendation\n\nUpdate to version 0.9.0 or later.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "libp2p-secio"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0.9.0"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/libp2p/js-libp2p-secio/pull/95"
    },
    {
      "type": "WEB",
      "url": "https://snyk.io/vuln/npm:libp2p-secio:20180115"
    },
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/advisories/558"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-290"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2019-08-22T14:56:33Z",
    "nvd_published_at": null
  }
}