Identity Spoofing in libp2p-secio

libp2p-secio Updated 02 Oct 2025

Summary

23/08/2019
CRITICAL
Yes i
Critical
9.1

GHSA-rch7-f4h5-x9rj: Identity Spoofing in libp2p-secio. Affects libp2p-secio versions < 0.9.0. Fixed in 0.9.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

libp2p-secio is an npm package that provides secure communication channels for libp2p, a modular network stack for peer-to-peer applications. It is used to establish secure connections between peers by performing a crypto handshake. However, certain versions of libp2p-secio are affected by a vulnerability that allows identity spoofing. This means that the package does not correctly verify the PeerId of the destination peer, leading to a high severity security issue.

Vulnerability Detail

The vulnerability in libp2p-secio arises from the failure to properly validate the PeerId of the destination peer during the crypto handshake. This allows an attacker to spoof their identity and impersonate another peer. By exploiting this vulnerability, an attacker could potentially gain unauthorized access to sensitive information or perform malicious actions on the network. The severity of this vulnerability is rated as critical with a CVSS score of 9.1.

How To Fix

Latest published version: 0.13.1 as of 22 Oct 2026

npm install libp2p-secio@0.13.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.9.0

This is the first release that contains the fix.

npm install libp2p-secio@0.9.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The libp2p-secio package is affected by a critical vulnerability that allows identity spoofing. To mitigate this issue, it is crucial to update to version 0.9.0 or later. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for libp2p-secio →

Share this vulnerability

FAQ

libp2p-secio is an npm package that provides secure communication channels for libp2p, a modular network stack for peer-to-peer applications.

The vulnerability allows identity spoofing, enabling an attacker to impersonate another peer and potentially gain unauthorized access or perform malicious actions on the network.

The severity of this vulnerability is rated as critical with a CVSS score of 9.1.

To fix this vulnerability, update to version 0.9.0 or later of the libp2p-secio package.

No workaround is available for this vulnerability. Updating to the fixed version is the recommended solution.

How To Fix

Latest published version: 0.13.1 as of 22 Oct 2026

npm install libp2p-secio@0.13.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.9.0

This is the first release that contains the fix.

npm install libp2p-secio@0.9.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback