CVE-2026-45740
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.
How to fix
- protobufjs_project protobufjs7.5.8, 8.2.0 or later
- protobufjs7.5.8, 8.2.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| protobufjs_project protobufjs | v < 7.5.8, 8.0.0 ≤ v < 8.2.0 | 7.5.8, 8.2.0 |
| protobufjsnpm | v < 7.5.8, 8.0.0 ≤ v < 8.2.0 | 7.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.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.