PT-2026-40535 · Npm · Protobufjs
CVSS v2.0
7.8
High
| Vector | AV:N/AC:L/Au:N/C:N/I:N/A:C |
Name of the Vulnerable Software and Affected Versions
protobufjs versions prior to 7.5.6
protobufjs versions prior to 8.0.2
Description
protobufjs can recurse without a depth limit while decoding nested protobuf data, specifically when skipping unknown group fields and during the generated decoding of nested message fields. A crafted protobuf binary payload can exhaust the JavaScript call stack, leading to a process crash or decoding failure due to a stack overflow. This occurs when an application decodes untrusted protobuf binary input containing deeply nested structures, such as nested group tags or nested message fields.
Recommendations
Update to version 7.5.6.
Update to version 8.0.2.
Avoid decoding untrusted protobuf binary data.
Reject excessively nested messages at an outer protocol boundary where feasible.
Isolate protobuf decoding in a process that can be safely restarted.
Exploit
Fix
RCE
Uncontrolled Recursion
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Protobufjs