Skip to main content

@libp2p/crypto CVE-2026-110789

| EUVDEUVD-2026-127199 HIGH
Improper Handling of Length Parameter Inconsistency (CWE-130)
2026-11-17 GitHub_M GHSA-rvfr-cqwq-rc4j
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Open libp2p connection to target node
  2. Delivery
    Send Identify with ~15-byte crafted publicKey
  3. Exploit
    readLength accepts oversized long-form DER length
  4. Execution
    readInteger loops past buffer synchronously
  5. Persist
    Event loop stalls ~4-5s, RSS spikes ~2GB
  6. Impact
    Reconnect repeatedly to sustain DoS/OOM-kill

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Length parameter validation
Exploitation Conditions

Exploitation requires only that the target node runs the default Identify service, which is enabled by default and executes on every connection:open - so reachable against default configurations of any affected js-libp2p node using @libp2p/crypto <= 5.1.21. The crafted publicKey reaches publicKeyFromProtobuf before the connection.remotePeer.equals(id) check, making the attack pre-auth and endlessly repeatable by reconnecting. The MAX_RSA_JWK_SIZE guard bounds only total blob size (not the inner DER length field), so a ~15-byte payload defeats it, and the ECDSA path has no cap at all. LIMITING FACTORS: the worst outcome (OOM process kill) requires a memory-constrained deployment such as a container with a memory limit; without such a limit, impact is repeated ~4-5s event-loop stalls that freeze all timers, heartbeats, and peers rather than an outright crash. No authentication, user interaction, or non-default configuration is needed.

Impact

This is a credible, actionable availability threat rather than a high-CVSS-but-low-real-risk issue, though the impact is bounded to denial-of-service. The CVSS:3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5) describes a remote, low-complexity, pre-authentication attack with no user interaction and availability-only impact - consistent with the described mechanism: a crafted publicKey reaches @libp2p/crypto's DER decoder via the default Identify service before any peer-id or signature check, so the trigger genuinely requires no privileges. The decode occurs in a single synchronous event-loop tick, which is why Identify's 5-second AbortSignal timeout cannot interrupt it - a key detail confirmed by the GHSA advisory. A full, working PoC is attached to the advisory and reproduced 3/3 (each connection stalling the victim's event loop ~4-5s and spiking RSS ~2 GB), so publicly available exploit code exists; this should not be conflated with active exploitation. The vulnerability is NOT in CISA KEV, and no EPSS score was provided in the input, so there is no signal of in-the-wild exploitation - the vuln.today Decision label is 'this_week', not act_now/emergency. Impact is availability-only (C:N/I:N), so despite the alarming 'exhaust memory' and 'all peers' language, there is no data-confidentiality or integrity exposure; the OOM-kill escalation applies specifically to memory-constrained (containerized) deployments. Note the input Tags include 'Information Disclosure', which contradicts the CVSS impact metrics (C:N) and the DoS mechanism - that tag appears mislabeled.

Exploit ScenarioDerived

A remote, unauthenticated attacker opens a libp2p connection to any node running the default Identify service and sends an Identify message containing a ~15-byte crafted RSA or ECDSA publicKey whose DER long-form length field claims a huge size. The node's crypto decoder loops synchronously far past the tiny buffer, freezing the entire Node.js event loop for ~4-5 seconds and transiently allocating ~2 GB; by reconnecting repeatedly the attacker keeps the node unresponsive to all peers and, under a container memory limit, forces an OOM kill. A full working PoC is attached to the GHSA advisory and was reproduced across 3/3 connections.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 18, 2026

Denial of service in the @libp2p/crypto package shipped with js-libp2p: a peer can send a ~15-byte malformed publicKey inside an Identify message that the ASN.1 DER decoder processes before any peer-id or signature verification, freezing the Node.js event loop for roughly 4-5 seconds and transiently allocating around 2 GB per connection. Every node running the default Identify service with @libp2p/crypto 5.1.21 or earlier is affected, and because the malformed key is handled pre-auth, an unauthenticated remote peer can repeat the stall indefinitely by reconnecting; in memory-limited containers the allocation spike can OOM-kill the process. The vendor reproduced the issue with published proof-of-concept code and fixed it in 5.1.22; there is no confirmed active exploitation (not listed in CISA KEV), and no EPSS score was supplied in the intelligence for this analysis.

RemediationAI

Vendor-released patch: upgrade @libp2p/crypto to 5.1.22, published as js-libp2p release tag crypto-v5.1.22, which adds an integer/negative/overrun check in readLength() and rejects truncated long-form length headers (GitHub PR 3587, commit ef6e1851cb00511a4793a5e68948e0cdad385332); also re-resolve the transitive @libp2p/crypto dependency in any js-libp2p deployment and verify the installed version, since the guard is present only in the patched reader and no other complete fix is documented. If upgrading cannot be done immediately, the exposure described comes from the Identify service handling unverified publicKey data on every connection, so removing the Identify service from the node's service configuration eliminates that pre-auth path at the cost of losing peer address discovery and advertisement; additionally, capping container memory does not prevent the multi-second stalls but converts the ~2 GB spike into a predictable OOM kill boundary, and rate-limiting or restricting inbound connections reduces how often an attacker can repeat the ~15-byte payload but cannot prevent the stall caused by a single accepted connection.

Affected VersionsENISA

js-libp2p < 3.3.8
crypto < 5.1.22

Affected Packages

npm @libp2p/crypto fix: 5.1.22
euvd crypto fix: 5.1.22
euvd js_libp2p fix: 3.3.8

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw sits in the hand-rolled DER reader at packages/crypto/src/keys/rsa/der.ts, which is reached through publicKeyFromProtobuf when a peer's Identify payload is parsed. readLength() accepts ASN.1 long-form element lengths without comparing the claimed value to the bytes actually remaining in the buffer, so readInteger and the sibling readers (readObjectIdentifier, readBitString, readOctetString) iterate up to an attacker-claimed length inside a single synchronous tick. This is CWE-130 (improper handling of length parameter inconsistency), escalating to CWE-400 (uncontrolled resource consumption): the existing MAX_RSA_JWK_SIZE guard bounds only the total blob size, not the inner length field, so a tiny payload defeats it, and the ECDSA path (unmarshalECDSAPublicKey) has no size cap at all. Because decoding happens before the connection.remotePeer.equals(id) check in packages/protocol-identify/src/identify.ts, the code runs pre-authentication and synchronously, so no AbortSignal - including Identify's own 5 s timeout - can interrupt it, and all timers, heartbeats and peer handling stop until the loop unwinds. A DER RangeError raised at the end of the over-read is swallowed by Identify's catch handler, letting the node survive and be re-stalled on the next connection.

Know when Libp2P gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Remote pre-auth trigger via the default-enabled Identify service with no user interaction (AV:N/AC:L/PR:N/UI:N); impact is availability-only event-loop stall/OOM, so C:N/I:N/A:H.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Nov 17, 2026 - 20:18 EUVD
CVE Published
Nov 17, 2026 - 19:14 cve.org
HIGH 7.5

DescriptionCVE.org

libp2p is a JavaScript implementation of the libp2p networking stack. Prior to 5.1.22, the @libp2p/crypto code reached by the default Identify service accepts a remote peer’s crafted publicKey before peer-id or signature verification and passes it through publicKeyFromProtobuf to the ASN.1 DER decoder. readLength in packages/crypto/src/keys/rsa/der.ts accepts long-form element lengths larger than the remaining buffer, causing readInteger and related readers to loop synchronously over an attacker-claimed length from a very small key blob. Because decoding occurs in one event-loop tick before the remotePeer equality check in packages/protocol-identify/src/identify.ts, the Identify timeout cannot interrupt it, allowing repeated unauthenticated connections to stall all timers and peers and transiently exhaust memory. This issue is fixed in version 5.1.22.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 5 npm packages depend on @libp2p/crypto (4 direct, 1 indirect)

Ecosystem-wide dependent count for version 5.1.22.

Technical POC Analysis

CWE-130 (Improper Handling of Length Parameter Inconsistency), scored by the vendor alongside CWE-400.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

The @libp2p/crypto package used in js-libp2p has a high-severity denial-of-service vulnerability (CVE-2026-110789) that allows any unauthenticated peer to freeze a node's event loop for several seconds and cause ~2GB memory spikes per connection, potentially crashing containerized nodes. Every node running the default Identify service with version 5.1.21 or earlier is affected, meaning our peer-to-peer network infrastructure could experience repeated outages, impacting availability and service reliability. While no active exploitation has been confirmed, the public availability of proof-of-concept code raises the risk of opportunistic attacks.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 49% exploitable
Prevalence
Medium
core p2p networking library for IPFS/Filecoin/web3 nodes, not general enterprise ubiquity
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Libp2P

View all
CVE-2026-89146 HIGH POC
8.7 Sep 11

Denial-of-service in libp2p-rendezvous ≤0.17.1 (Rust) allows a malicious rendezvous server to crash any connecting clien

CVE-2026-86039 HIGH POC
8.2 Sep 17

Address-book poisoning in the @libp2p/peer-store component of js-libp2p (8.0.0 up to, but not including, 12.0.24) allows

CVE-2023-39533 HIGH POC
7.5 Aug 08

go-libp2p is the Go implementation of the libp2p Networking Stack. Rated high severity (CVSS 7.5), this vulnerability is

CVE-2026-73568 HIGH POC
7.5 Aug 13

Uncontrolled resource consumption in py-libp2p's yamux stream multiplexer allows any remote peer that completes a standa

CVE-2026-86038 HIGH POC
7.5 Sep 17

Forged message authorship in @libp2p/gossipsub 15.0.0 through 16.0.4 lets an unauthenticated, remote attacker sign a gos

CVE-2026-95859 HIGH
8.7 Oct 16

Remote unauthenticated denial of service in rust-libp2p Gossipsub affects versions prior to 0.49.5 and allows any peer t

CVE-2026-32314 HIGH
8.7 Mar 13

Rust Yamux prior to version 0.13.10 is vulnerable to denial of service when processing specially crafted inbound stream

CVE-2026-103936 HIGH
7.5 Oct 15

Unauthenticated remote denial of service in @libp2p/webrtc (the js-libp2p WebRTC transport) before 6.0.28 lets a single

CVE-2026-86040 HIGH
7.5 Sep 17

Unauthenticated denial of service in @libp2p/floodsub before 11.0.26 (packaged with js-libp2p < 11.0.26) lets a remote p

CVE-2026-77384 HIGH
7.5 Aug 24

Unbounded abort listener accumulation in js-libp2p's circuit-relay-v2 relay server allows any remote peer to exhaust mem

CVE-2023-40583 HIGH
7.5 Aug 25

libp2p is a networking stack and library modularized out of The IPFS Project, and bundled separately for other tools to

CVE-2022-23492 HIGH
7.5 Dec 08

go-libp2p is the offical libp2p implementation in the Go programming language. Rated high severity (CVSS 7.5), this vuln

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy