Intel

AIKIDO-2026-701724

bun is vulnerable to Allocation of Resources Without Limits or Throttling

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 22, 2026
October 22, 2026

59

CVE Score

Medium

Allocation of Resources Without Limits or Throttling

Are you affected? Scan for Free

TL;DR

Bun.serve with HTTP/3 enabled decodes request headers through QPACK callbacks that cap one field and not the header set, and fetch with protocol http3 uses those callbacks for response headers. A peer can repeat one dynamic table entry so each reference is copied into the header buffer, which can exhaust process memory, and the unsigned growth counter wraps so the size loop never finishes. The fix counts each field, including a 32-byte overhead. An oversized request header set is rejected with status 431, and a request far over the limit closes the connection. An oversized response header set on fetch is rejected with ResponseHeadersTooLarge.

How do I fix this?

Upgrade the bun 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 HTTP/3 is enabled for Bun.serve or fetch. HTTP/3 is off unless the application turns it on.

Package

Versions

1.3.14 - 1.4.3

Fixed in 1.4.4

Background info

bun is vulnerable to Allocation of Resources Without Limits or Throttling in versions 1.3.14 - 1.4.3.

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