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
// 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 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
Required Tables
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.
- Test 1 Inventory check for vulnerable @libp2p/crypto
Expected signal: Process execution of npm/node reading package metadata; file reads of package-lock.json.
- 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.
- 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.
References (5)
- https://github.com/libp2p/js-libp2p/security/advisories/GHSA-rvfr-cqwq-rc4j
- https://github.com/libp2p/js-libp2p/pull/3587
- https://github.com/libp2p/js-libp2p/commit/ef6e1851cb00511a4793a5e68948e0cdad385332
- https://github.com/libp2p/js-libp2p/releases/tag/crypto-v5.1.22
- https://github.com/advisories/GHSA-rvfr-cqwq-rc4j
Response Playbook
Triage
- 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.
- 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.
- 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.
- Review libp2p/application logs for malformed key, certificate, or DER/ASN.1 parse activity and abrupt connection resets during the handshake phase.
Containment
- Upgrade @libp2p/crypto to 5.1.22 or later (or upgrade the parent js-libp2p release that pins it) and redeploy the affected service.
- 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.
- Restart stalled Node.js processes to restore service and, if under active exploitation, temporarily disable the exposed listener.
Evidence Collection
- 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.
- 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.
- 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.
// 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) ``` 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
Enumerate installed @libp2p/crypto versions to confirm exposure to CVE-2026-110789 (vulnerable at <= 5.1.21).
Command
cd /path/to/nodejs/app && npm ls @libp2p/crypto 2>/dev/null; grep -R "\"@libp2p/crypto\"" package-lock.json | head Cleanup
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.
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
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
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.
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
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
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.