Intel

AIKIDO-2026-60073

dns2 is vulnerable to Denial of Service (DoS)

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 13, 2026
July 13, 2026

46

CVE Score

Medium

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

Packet.Name.decode in packet.js follows DNS name compression pointers when decoding names but does not track which pointer offsets it has already visited. A crafted DNS message whose name pointers reference each other in a cycle makes the decoder jump between the same offsets endlessly. Because parsing runs on the single-threaded Node.js event loop, one malformed packet causes an infinite loop that hangs the server or client process handling it. The fix records visited pointer targets in a Set and throws Name decode: pointer cycle detected when a pointer target repeats.

How do I fix this?

Upgrade the dns2 library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application parses DNS messages from untrusted sources.

Package

Versions

1.1.0 - 2.2.1

Fixed in 2.3.0

Background info

dns2 is vulnerable to Denial of Service (DoS) in versions 1.1.0 - 2.2.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea