Vulnerability
CVE-2026-54270
protobufjs compiles protobuf definitions into JavaScript (JS) functions. From 8.2.0 to 8.4.2, protobufjs preserved unknown wire elements in message.$unknowns and did not provide a decode-time option to discard unknown fields before retaining them. A crafted protobuf payload containing many unknown fields could therefore cause a decoded message to retain substantially more memory than the input size would suggest, even when unknown-field round-tripping is not needed. protobufjs 8.5.0 added the relevant decode-time options, allowing applications that decode untrusted protobuf data to disable unknown-field retention during decode. protobufjs 8.6.2 flips the default so unknown fields are discarded unless explicitly opted into.
23 advisories report this vulnerability, across 2 ecosystems.
Advisories
- CGA-3rr7-ffc9-mfj6
- CGA-44cq-xm2v-w3q8
- CGA-4g6q-5cpw-966c
- CGA-56g2-gjf5-f3gv
- CGA-5w8v-46hr-v7f4
- CGA-78wx-8v37-54c3
- CGA-8v6g-9pxh-47qc
- CGA-9f5p-g8g9-fhm3
- CGA-9r7h-5586-xx89
- CGA-g4mw-8mgc-m48w
- CGA-gccj-xm5x-6hr2
- CGA-h3v9-3qqv-6w24
- CGA-j785-p8g7-x7cr
- CGA-j8p5-3wxp-mm37
- CGA-jjpw-q4jg-j4rh
- CGA-jmf5-wgx5-5wg4
- CGA-m9p3-c3m2-4v8v
- CGA-phjw-7q2h-x78c
- CGA-q568-vx44-7qhp
- CGA-r8rj-6fg9-95h8
- CGA-rrgm-7xv7-f3xf
- CGA-wxmf-c5p2-948g
-
GHSA-94rc-8x27-4472
protobufjs: Memory amplification from preserved unknown fields in binary decode