bun is vulnerable to Out-of-bounds Write
95
CVE Score
Critical
Out-of-bounds Write
fetch decompresses a response with Content-Encoding: br with the bundled Brotli decoder, and node:zlib and DecompressionStream use that same decoder. A block type switch in a stream that declares only one block type fails its length check, and the failure is ignored, so decoding writes past the output buffer and can crash the process or lead to code execution. The fix returns BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH and stops decoding.
Upgrade the bun library to the patch version, including packages prefixed with @oven/bun, such as @oven/bun-darwin-aarch64.
You are affected if you are using a version that falls within the vulnerable range and the application decompresses Brotli data.
1.0.22 - 1.4.3
Fixed in 1.4.4bun is vulnerable to Out-of-bounds Write in versions 1.0.22 - 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.