Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @libp2p/crypto
  4. ›
  5. CVE-2026-110789

CVE-2026-110789: libp2p: ASN.1 DER decoder drives an unbounded synchronous loop on attacker-controlled length fields, stalling the Node event loop pre-auth

November 17, 2026

A remote peer can stall a js-libp2p node’s entire event loop for ~4–5 seconds per connection (and transiently allocate ~2 GB) by sending a ~15-byte crafted publicKey inside an Identify message. The malformed key reaches the DER decoder before any peer-id/signature check, so the attack is pre-auth and repeatable indefinitely by reconnecting.

References

  • github.com/advisories/GHSA-rvfr-cqwq-rc4j
  • github.com/libp2p/js-libp2p/commit/ef6e1851cb00511a4793a5e68948e0cdad385332
  • github.com/libp2p/js-libp2p/pull/3587
  • github.com/libp2p/js-libp2p/releases/tag/crypto-v5.1.22
  • github.com/libp2p/js-libp2p/security/advisories/GHSA-rvfr-cqwq-rc4j
  • nvd.nist.gov/vuln/detail/CVE-2026-110789

Code Behaviors & Features

Detect and mitigate CVE-2026-110789 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 5.1.22

Fixed versions

  • 5.1.22

Solution

Upgrade to version 5.1.22 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-130: Improper Handling of Length Parameter Inconsistency
  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/@libp2p/crypto/CVE-2026-110789.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 18 Nov 2026 12:16:44 +0000.