Vulnerability GHSA-jggg-4jg4-v7c6

Medium Risk
MEDIUM RISK
CVSS Score: 5.3
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
5 months ago
May 19, 2026 at 04:21 PM UTC
protobufjs: Denial of Service via unbounded recursive JSON descriptor expansion
0.0.0 - 7.5.7 and 8.0.0 - 8.1.6-experimental
0.0.0 - 7.5.7 and 8.0.0 - 8.1.6-experimental

Summary

protobufjs: Denial of Service via unbounded recursive JSON descriptor expansion

Details

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 nested namespace 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.

Impacted packages

Timeline

Published
5 months ago
May 19, 2026 at 04:21 PM UTC
Fixed (8.2.0)
5 months ago
May 09, 2026 at 07:38 PM UTC
Fixed (7.5.8)
5 months ago
May 12, 2026 at 09:40 AM UTC
Last Modified
1 month ago
September 10, 2026 at 03:51 AM UTC