bun is vulnerable to Allocation of Resources Without Limits or Throttling
59
CVE Score
Medium
Allocation of Resources Without Limits or Throttling
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.
Upgrade the bun library to the patch version.
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.
1.3.14 - 1.4.3
Fixed in 1.4.4bun is vulnerable to Allocation of Resources Without Limits or Throttling in versions 1.3.14 - 1.4.3.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.