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.
An attacker who can provide JSON descriptors loaded by an application may be able to crash the process or otherwise cause schema loading to fail with a stack overflow.
This affects applications that load JSON descriptors from untrusted sources with affected versions.
nested namespace objects.Root.fromJSON() / Namespace.addJSON() descriptor expansion path must process the crafted input.Avoid loading untrusted protobuf JSON descriptors with affected versions. If immediate upgrade is not possible, reject excessively nested descriptor structures at an outer validation boundary where feasible, or isolate descriptor loading in a process that can be safely restarted.
{
"github_reviewed_at": "2026-05-19T16:21:33Z",
"nvd_published_at": "2026-05-13T16:17:00Z",
"github_reviewed": true,
"cwe_ids": [
"CWE-674"
],
"severity": "MODERATE"
}