Intel

AIKIDO-2026-268967

@libp2p/crypto is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)GHSA-rvfr-cqwq-rc4j Published Aug 27, 2026

75

High Risk

This Affects:

JS@libp2p/crypto
5.0.14 - 5.1.21
Fixed in 5.1.22
Are you affected? Scan for Free

TL;DR

The RSA DER decoder trusts element length fields without checking them against the remaining buffer. A malformed length can drive a large synchronous loop and allocation, stalling the Node.js event loop and spiking memory. The fix rejects NaN, negative, and out-of-bounds lengths before parsing.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your node runs Identify (enabled by default), which DER-decodes a peer's RSA public key before authentication.

Background info

@libp2p/crypto is vulnerable to Denial of Service (DoS) in versions 5.0.14 - 5.1.21.

How to fix this

Upgrade the @libp2p/crypto library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform