Brotli: Out-of-bounds write in the Brotli decoder ("Node2Shell") also affects the PyPI Brotli package
In github.com/andybalholm/brotli before v1.2.7, the decompressor allocates memory for Huffman tables and block-type trees on every meta-block header without bounding the cumulative allocations relative to the input size. A small crafted brotli stream containing many empty meta-blocks with new Huffman trees can trigger hundreds of megabytes of allocations per kilobyte of input, leading to denial of service.
Recorded fixes — brotli: 1.2.1; brotlicffi: 1.2.1.0; 1 more packages. Check your release branch.
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 1.2.7Semantic versions | 1.2.7 |
Version evidence: OSV · GO-2026-6888
View original version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2.7"
}
],
"type": "SEMVER"
}
],
"versions": []
}