CVE-2026-59877 Details
Description
protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 7.6.5 and 8.6.6, protobufjs parsed option names by advancing through schema tokens until reaching an = token without checking for end of input, so a crafted .proto schema that opens an option declaration and ends prematurely can cause parse, Root.load, or Root.loadSync to loop indefinitely. This issue is fixed in versions 7.6.5 and 8.6.6.
A denial-of-service vulnerability has been identified in protobufjs versions 7.5.0 prior to 7.6.5 and 8.0.0 prior to 8.6.6. The issue arises in the reflection parsing path when the library processes option names in .proto schemas. The parser advances through schema tokens looking for an '=' token, but fails to check for the end of input. This oversight allows a crafted schema to open an option declaration and then end prematurely, causing the parser to enter an infinite loop. As a result, the blocked event loop halts all other operations in the Node.js process, leading to a denial-of-service condition that persists until the process is manually terminated.
Users can upgrade to protobufjs versions 7.6.5 or 8.6.6, both of which include the necessary fix. If untrusted schema text must be parsed, it is recommended to do so in a separate process or worker that can be terminated if it does not complete, and to set a timeout to prevent denial-of-service conditions.
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 Jul 8, 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.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-835 | Loop with Unreachable Exit Condition ('Infinite Loop') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| protobufjs project protobufjs | < 7.6.5 >= 8.0.0, < 8.6.6 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 10, 2026 | Initial Analysis | [email protected] |
| Jul 8, 2026 | CVE Modified | CISA-ADP |
| Jul 8, 2026 | New CVE Received | [email protected] |