protobufjs
Affected
- introduced
0, fixed7.5.8(semver)
Fixed versions
7.5.8
Fix
- Fixed version
7.5.8npm install [email protected]
Advisory
Also known as: CVE-2026-45740
protobufjs: Denial of Service via unbounded recursive JSON descriptor expansion
Summary
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.
Impact
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.
Preconditions
nested namespace objects.Root.fromJSON() / Namespace.addJSON() descriptor expansion path must process the crafted input.Workarounds
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.
Medium Basis: The source's own band: MODERATE
0, fixed 7.5.8 (semver)7.5.8
7.5.8npm install [email protected]8.0.0, fixed 8.2.0 (semver)8.2.0
8.2.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0