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

Medium 5.3 Published Updated

Attackers can cause memory exhaustion and denial of service by sending crafted protobuf payloads with many unknown fields to applications using vulnerable protobufjs versions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-54270?

CVE-2026-54270 is a medium-severity denial of service vulnerability in protobufjs protobuf.js, published on 22 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-770

Which versions are affected by CVE-2026-54270?

2 open source packages ship an affected version, including protobufjs. It affects 1 product.

PackageAffectedFixed in
protobufjs npmFrom 8.2.08.5.0
protobufjs npmFrom 8.2.08.5.0

Products include Protobufjs Project Protobufjs.

How do I fix CVE-2026-54270?

Upgrade protobufjs to 8.5.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-54270 being exploited?

There is no known exploitation of CVE-2026-54270 in the wild and no public exploit code.

Sources

Also known as GHSA-94rc-8x27-4472, MINI-623v-wj9h-7mpw, ROOT-APP-NPM-CVE-2026-54270.

Is CVE-2026-54270 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free