CVE-2026-45740

Medium

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.

SeverityMedium
CVSS5.3
Exploit probability—
ProductProtobufjs
PublishedMay 13, 2026
First seenMay 13, 2026
Weakness typeCWE-674CWE-674

How to fix

Update
  • protobufjs_project protobufjs7.5.8, 8.2.0 or later
  • protobufjs7.5.8, 8.2.0 or later

Affected products

ProductAffected versionsFixed in
protobufjs_project protobufjsv < 7.5.8, 8.0.0 ≤ v < 8.2.07.5.8, 8.2.0
protobufjsnpmv < 7.5.8, 8.0.0 ≤ v < 8.2.07.5.8, 8.2.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.