libp2p @libp2p/crypto ASN.1 DER Decoder Unbounded Loop DoS (CVE-2026-110789)
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
Vulnerability Intelligence
Public PoCAffected Software
- Vendor
- npm
- Product
- @libp2p/crypto
- Versions
- <= 5.1.21
Timeline
- Disclosed
- November 17, 2026
References & Proof of Concept
- 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
CVSS
- Attack Vector
- Network
- Attack Complexity
- Low
- Privileges Required
- None
- User Interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
What is CVE-2026-110789 libp2p @libp2p/crypto ASN.1 DER Decoder Unbounded Loop DoS (CVE-2026-110789)?
libp2p @libp2p/crypto ASN.1 DER Decoder Unbounded Loop DoS (CVE-2026-110789) (CVE-2026-110789) maps to the Impact tactic — the adversary is trying to manipulate, interrupt, or destroy your systems and data in MITRE ATT&CK.
This page provides production-ready detection logic for libp2p @libp2p/crypto ASN.1 DER Decoder Unbounded Loop DoS (CVE-2026-110789), covering the data sources and telemetry it touches: Microsoft Defender for Endpoint, DeviceProcessEvents, DevicePerformanceEvents. The queries below are rated high severity at medium confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.
MITRE ATT&CK
- Tactic
- Impact
// df00tech DF00-0b1f8a4be9 · https://df00tech.com/detections/CVE-2026-110789 · licence: https://df00tech.com/detections/licence
// Node.js process CPU saturation / event-loop stall indicative of libp2p DER decoder DoS
let vulnProcs = DeviceProcessEvents
| where Timestamp > ago(1h)
| where FileName in~ ("node", "node.exe")
| where ProcessCommandLine has_any ("libp2p", "@libp2p/crypto")
| project DeviceId, DeviceName, ProcessId=ProcessCreationTime, NodeProc=InitiatingProcessFileName, ProcessCommandLine, Timestamp;
DevicePerformanceEvents
| where Timestamp > ago(1h)
| where CpuUtilization > 90
| join kind=inner (vulnProcs) on DeviceId
| summarize SustainedHighCpuSamples=count(), MaxCpu=max(CpuUtilization), FirstSeen=min(Timestamp), LastSeen=max(Timestamp) by DeviceId, DeviceName, ProcessCommandLine
| where SustainedHighCpuSamples >= 5
| order by SustainedHighCpuSamples desc Correlates Node.js processes invoking libp2p with sustained (>90%) single-host CPU utilization, the primary symptom of the synchronous DER-decode loop stalling the event loop. Pair with software-inventory confirmation of @libp2p/crypto <= 5.1.21.
Data Sources
Required Tables
False Positives
- Legitimate CPU-intensive workloads (crypto mining of blocks, large content routing/DHT operations) in healthy libp2p nodes
- Garbage-collection pauses or JIT warm-up producing transient high CPU unrelated to the vulnerability
- Batch cryptographic key generation during node bootstrap
Query fingerprint DF00-0b1f8a4be9 · licence
Sigma logsource & community rules
The detection logic for libp2p @libp2p/crypto ASN.1 DER Decoder Unbounded Loop DoS (CVE-2026-110789) (CVE-2026-110789) above is provided in a vendor-neutral
form so you can deploy it on any SIEM. The same logic is shipped here as native
KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the
following logsource:
logsource:
category: process_creation
product: windows Browse the community-maintained Sigma rules for this technique:
Platform-specific guides for CVE-2026-110789
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
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.
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.
Related Detections
Tactic Hub
Related Techniques
Same Tactic: Impact
Blog posts about this detection
Browse by tactic
- Reconnaissance TA0043
- Resource Development TA0042
- Initial Access TA0001
- Execution TA0002
- Persistence TA0003
- Privilege Escalation TA0004
- Stealth TA0005
- Defense Impairment TA0112
- Credential Access TA0006
- Discovery TA0007
- Lateral Movement TA0008
- Collection TA0009
- Command and Control TA0011
- Exfiltration TA0010
- Impact TA0040