CVE-2026-45740 protobufjs: Denial of Service via unbounded recursive JSON descriptor expansion

Medium 5.3 Published Updated

Attackers can cause denial of service in applications using protobufjs by supplying deeply nested JSON descriptors that exhaust the call stack.

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-45740?

CVE-2026-45740 is a medium-severity denial of service vulnerability in protobufjs protobuf.js, published on 13 May 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. Prior to 7.5.8 and 8.2.0, protobufjs could recurse without a depth limit while expanding nested JSON descriptors through Root.fromJSON() and Namespace.addJSON(). A crafted JSON descriptor with deeply nested namespace definitions could cause the JavaScript call stack to be exhausted during descriptor loading. This vulnerability is fixed in 7.5.8 and 8.2.0.

Weakness: CWE-674

Which versions are affected by CVE-2026-45740?

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

PackageAffectedFixed in
protobufjs npmAll versions7.5.8
protobufjs npmAll versions7.5.8
protobufjs npmFrom 8.0.08.2.0
protobufjs npmFrom 8.0.08.2.0

Products include Protobufjs Project Protobufjs.

How do I fix CVE-2026-45740?

Upgrade protobufjs to a fixed version for your release line: 7.5.8 or 8.2.0.

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-45740 being exploited?

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

Sources

Also known as CLEANSTART-2026-AZ83054, CLEANSTART-2026-RU46318, ECHO-5c56-1b39-01b7, GHSA-jggg-4jg4-v7c6, MINI-2wv4-prc5-87pw, MINI-3pff-62pv-rvr5 and 15 more.

Is CVE-2026-45740 in your software?

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

Check your SBOMs for free