Skip to content
CVE-2026-110789 Sumo Logic CSE · Sumo

Detect libp2p @libp2p/crypto ASN.1 DER Decoder Unbounded Loop DoS (CVE-2026-110789) in Sumo Logic CSE

Detects exploitation of CVE-2026-110789, an uncontrolled resource consumption / improper validation of array index (CWE-130, CWE-400) flaw in the js-libp2p @libp2p/crypto ASN.1 DER decoder at versions <= 5.1.21. A remote, unauthenticated peer can supply a crafted DER-encoded key/certificate with an attacker-controlled length field that drives an unbounded synchronous decode loop, stalling the Node.js event loop before authentication completes (pre-auth denial of service, CVSS 7.5). Detection focuses on process-level symptoms: Node.js processes running vulnerable @libp2p/crypto, event-loop stalls, CPU saturation on a single thread, dropped libp2p connections during handshake, and dependency-inventory evidence of the affected package version. Remediate by upgrading to @libp2p/crypto 5.1.22 or later.

Based on GHSA-rvfr-cqwq-rc4j - libp2p js-libp2p crypto DER decoder advisory

MITRE ATT&CK

Tactic
Impact

Sumo Detection Query

Sumo Logic CSE (Sumo)
sql
// df00tech DF00-0b1f8a4be9 · https://df00tech.com/detections/CVE-2026-110789 · licence: https://df00tech.com/detections/licence
_sourceCategory=*linux* OR _sourceCategory=*node*
| where process matches "node*"
| where cmdline matches "*libp2p*" OR _raw matches "*@libp2p/crypto*"
| parse "cpu=*" as cpu_pct nodrop
| parse "event_loop_lag_ms=*" as lag nodrop
| where (num(cpu_pct) > 90) OR (num(lag) > 1000)
| timeslice 1m
| count as stall_samples, max(num(cpu_pct)) as peak_cpu, max(num(lag)) as peak_lag by host, process
| where stall_samples >= 5
| sort by stall_samples desc
high severity low confidence

Detects libp2p Node.js processes with sustained CPU saturation or event-loop lag over 1s, the runtime symptom of the unbounded synchronous DER decode. Combine with a package-inventory lookup for @libp2p/crypto <= 5.1.21.

Data Sources

Linux host metricsNode.js application logsSumo Logic host metrics source

Required Tables

_sourceCategory=linux_sourceCategory=node

False Positives & Tuning

  • Busy relay/bootstrap nodes doing legitimate heavy crypto or routing work
  • Parsing failures defaulting cpu/lag to misleading values (nodrop)
  • Startup compilation or GC-induced transient CPU spikes

Other platforms for CVE-2026-110789


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.

  1. Test 1 Inventory check for vulnerable @libp2p/crypto

    Expected signal: Process execution of npm/node reading package metadata; file reads of package-lock.json.

  2. Test 2 Simulate event-loop stall via synchronous busy loop

    Expected signal: Single Node.js process at ~100% of one CPU core for ~30s with no I/O progress; event-loop lag metrics spike.

  3. Test 3 Feed crafted DER input to decoder in a sandbox

    Expected signal: Node.js process consuming a full CPU core without returning; no network or disk I/O during the stall.


Response Playbook

Triage

  1. Confirm the affected host runs a Node.js service that depends on @libp2p/crypto and determine the installed version (npm ls @libp2p/crypto or inspect package-lock.json); any version <= 5.1.21 is vulnerable.
  2. Correlate the CPU/event-loop-stall alert window with inbound libp2p connection attempts (identify, noise, TLS/Noise handshake) from untrusted peers to establish whether the spike aligns with pre-auth handshake traffic.
  3. Check whether the Node process became unresponsive (dropped health checks, timed-out liveness probes, stalled request latency) during the spike, which distinguishes an event-loop stall from ordinary CPU-bound work.
  4. Review libp2p/application logs for malformed key, certificate, or DER/ASN.1 parse activity and abrupt connection resets during the handshake phase.

Containment

  1. Upgrade @libp2p/crypto to 5.1.22 or later (or upgrade the parent js-libp2p release that pins it) and redeploy the affected service.
  2. As an interim mitigation, restrict inbound peer connectivity to trusted peers/allowlists, place the service behind a connection-rate limiter, or isolate the affected node from untrusted networks until patched.
  3. Restart stalled Node.js processes to restore service and, if under active exploitation, temporarily disable the exposed listener.

Evidence Collection

  1. Capture the running process list, per-process CPU, and a Node.js CPU profile / event-loop lag snapshot during the stall for root-cause confirmation.
  2. Preserve libp2p peer connection logs and any captured network traffic (pcap) of the handshake from the suspected source peer, including the raw DER/ASN.1 payload if available.
  3. Record the exact installed @libp2p/crypto version from package-lock.json / node_modules and the service deployment manifest.

Escalation Criteria

  • !Escalate to incident response if multiple nodes stall simultaneously or repeatedly, indicating coordinated or sustained DoS against the service.
  • !Escalate if the affected service is internet-exposed and accepts connections from untrusted peers, materially raising exploitation likelihood.
  • !Escalate to engineering/on-call if service availability SLOs are breached or the node cannot recover without manual restart after patching.

Investigation Guide

Forensic Artifacts

  • >Node.js CPU profiles / event-loop lag metrics showing a single synchronous frame dominating CPU during the stall.
  • >libp2p connection logs showing untrusted peer handshakes immediately preceding the stall.
  • >package-lock.json / node_modules metadata proving @libp2p/crypto <= 5.1.21 was installed.
  • >Captured malformed DER/ASN.1 payload from handshake traffic (if pcap available).

Tuning Guidance

CPU-saturation signals are inherently noisy for busy libp2p relays and DHT nodes; baseline normal per-process CPU and event-loop lag first, then set the sustained-duration threshold (default >=5 one-minute samples) above typical legitimate peaks. The strongest high-fidelity signal is the combination of (a) confirmed @libp2p/crypto <= 5.1.21 in the dependency inventory and (b) an event-loop stall coinciding with untrusted inbound handshake traffic. Where possible, enrich with a software-inventory reference list so only unpatched hosts alert. Suppress known batch key-generation windows.


Hunting Queries

Inventory all hosts running Node.js libp2p services to scope exposure to CVE-2026-110789 and prioritize patching of @libp2p/crypto.

Hunting — KQL
kql
// df00tech DF00-0b1f8a4be9 · https://df00tech.com/detections/CVE-2026-110789 · licence: https://df00tech.com/detections/licence
DeviceProcessEvents | where Timestamp > ago(30d) | where FileName in~ ("node","node.exe") | where ProcessCommandLine has "libp2p" | summarize Hosts=dcount(DeviceId), make_set(DeviceName) by bin(Timestamp, 1d)
Hunting — SPL
spl
``` df00tech DF00-0b1f8a4be9 · https://df00tech.com/detections/CVE-2026-110789 · licence: https://df00tech.com/detections/licence ```
index=* sourcetype="nodejs:*" (cmdline="*libp2p*" OR "@libp2p/crypto") | stats dc(host) as hosts values(host) as hostlist by index

Atomic Red Team Tests

Test 1 Inventory check for vulnerable @libp2p/crypto
linux

Enumerate installed @libp2p/crypto versions to confirm exposure to CVE-2026-110789 (vulnerable at <= 5.1.21).

Command

bash
cd /path/to/nodejs/app && npm ls @libp2p/crypto 2>/dev/null; grep -R "\"@libp2p/crypto\"" package-lock.json | head

Cleanup

bash
echo 'no cleanup required - read-only inventory'

Expected Telemetry

Process execution of npm/node reading package metadata; file reads of package-lock.json.

Expected Detection

Not a detection event itself; confirms whether a host should be in scope for the CPU/event-loop detections.

Test 2 Simulate event-loop stall via synchronous busy loop
linux

Lab-only simulation of the pre-auth event-loop stall symptom by forcing a long synchronous CPU-bound operation in a Node.js process named/commandlined like a libp2p service, exercising the CPU-saturation detections.

Command

bash
node -e "process.title='node-libp2p-test'; const e=Date.now()+30000; while(Date.now()<e){Math.sqrt(Math.random());}" # label process to mimic libp2p service

Cleanup

bash
pkill -f 'node-libp2p-test' 2>/dev/null; echo done

Expected Telemetry

Single Node.js process at ~100% of one CPU core for ~30s with no I/O progress; event-loop lag metrics spike.

Expected Detection

KQL/SPL/metrics detections fire on sustained >90% CPU for a node process matching the libp2p command line.

Test 3 Feed crafted DER input to decoder in a sandbox
linux

Lab-only test against an isolated installation of vulnerable @libp2p/crypto, passing a DER payload with an oversized/attacker-controlled length field to the key unmarshalling path to reproduce the unbounded synchronous loop. Run only in a disposable sandbox.

Command

bash
node -e "const c=require('@libp2p/crypto'); const buf=Buffer.from('30808080808080','hex'); try{c.keys.unmarshalPublicKey(buf);}catch(e){console.log('err',e.message);}" # vulnerable <=5.1.21 stalls; patched throws promptly

Cleanup

bash
echo 'destroy sandbox / container after test'

Expected Telemetry

Node.js process consuming a full CPU core without returning; no network or disk I/O during the stall.

Expected Detection

Event-loop-stall and CPU-saturation detections trigger; on patched 5.1.22+ the call returns/throws quickly and no detection fires.

Related Detections