CVE-2026-45740 Details
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.
A denial-of-service vulnerability has been identified in protobufjs versions prior to 7.5.8 and 8.2.0. The issue arises because the library can recurse without a depth limit when expanding nested JSON descriptors through the Root.fromJSON() and Namespace.addJSON() methods. This flaw allows a crafted JSON descriptor with deeply nested namespace definitions to exhaust the JavaScript call stack, leading to a stack overflow. The vulnerability affects applications that load JSON descriptors from untrusted sources and could be exploited by an attacker to crash the application or cause schema loading to fail.
Users can upgrade to protobufjs versions 7.5.8 or 8.2.0 to address this vulnerability. If an immediate upgrade is not possible, it is recommended to avoid loading untrusted protobuf JSON descriptors with affected versions. Alternatively, excessively nested descriptor structures can be rejected at an outer validation boundary where feasible, or descriptor loading can be isolated in a process that can be safely restarted.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-jggg-4jg4-v7c6 | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-674 | Uncontrolled Recursion | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| protobufjs project protobufjs | < 7.5.8 >= 8.0.0, < 8.2.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 11, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 13, 2026 | Initial Analysis | [email protected] |
| May 13, 2026 | New CVE Received | [email protected] |