{"id":"CVE-2026-54270","summary":"protobufjs: Memory amplification from preserved unknown fields in binary decode","details":"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.","aliases":["GHSA-94rc-8x27-4472"],"modified":"2026-08-12T03:51:12.065942777Z","published":"2026-06-22T16:19:20.449Z","related":["CGA-p798-5pvv-rv37"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54270.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-770"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54270.json"},{"type":"ADVISORY","url":"https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-94rc-8x27-4472"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54270"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/protobufjs/protobuf.js","events":[{"introduced":"f8d5f3fe7104fade45407341228f0f0bb623e76d"},{"fixed":"4655f8d0a326014fd4c4eb85df39a1837673b28a"}],"database_specific":{"extracted_events":[{"introduced":"8.2.0"},{"fixed":"8.5.0"}],"source":["AFFECTED_FIELD","CPE_RANGE"],"cpe":"cpe:2.3:a:protobufjs_project:protobufjs:*:*:*:*:*:node.js:*:*"}}],"versions":["protobufjs-v8.4.2","protobufjs-cli-v2.4.2","protobufjs-v8.4.1","protobufjs-cli-v2.4.1","protobufjs-v8.4.0","protobufjs-cli-v2.4.0","protobufjs-v8.3.0","protobufjs-cli-v2.3.0","protobufjs-v8.2.1","protobufjs-cli-v2.2.1","protobufjs-v8.2.0","protobufjs-cli-v2.2.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54270.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}]}