CVE-2026-45740
protobufjs: Denial of Service via unbounded recursive JSON descriptor expansion
Description
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
- The application must load JSON descriptor data influenced by an attacker.
- The crafted descriptor must contain deeply nested
nestednamespace objects. - The affected
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.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » protobufjsvia npm protobufjs | < 7.5.8>= 8.0.0, < 8.2.0 | 7.5.8, 8.2.0 |
| org.webjars.npm » protobufjsvia npm protobufjs | < 7.5.8>= 8.0.0, < 8.2.0 | 7.5.8, 8.2.0 |
Blast radius
12% of the dependent artifacts (3) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 56 |
| 2 hops | 90 |
| 3 hops | 29 |
| 4 hops | 29 |
| 5 hops | 85 |
| 6 hops | 136 |
Most used dependents
- org.mvnpm.at.opentelemetry » otlp-exporter-base12 usages
- org.mvnpm.at.opentelemetry » otlp-transformer12 usages
- org.mvnpm.at.lwrjs » core4 usages
- org.mvnpm.at.opentelemetry » exporter-trace-otlp-http4 usages
- org.mvnpm.at.opentelemetry » otlp-grpc-exporter-base4 usages
- org.mvnpm.at.lwrjs » client-modules3 usages
- org.mvnpm.at.opentelemetry » exporter-logs-otlp-http3 usages
- org.mvnpm.at.opentelemetry » exporter-metrics-otlp-http3 usages
- org.mvnpm.at.opentelemetry » exporter-trace-otlp-proto3 usages
- org.mvnpm » o11y2 usages
- org.mvnpm.at.lwrjs » loader2 usages
- org.mvnpm.at.lwrjs » tools2 usages
- org.mvnpm.at.opentelemetry » sdk-node2 usages
- org.mvnpm.at.lwrjs » router1 usages
- org.mvnpm.at.lwrjs » lwc-ssr1 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
