CVE-2026-45740

protobufjs: Denial of Service via unbounded recursive JSON descriptor expansion

Published May 13, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 7.5.8 and 8.2.0, 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. This vulnerability is fixed in 7.5.8 and 8.2.0.

Analysis

AI-generated

Technical impact

protobufjs is a JavaScript library that compiles Protocol Buffers definitions into executable code. The vulnerability allows a practitioner to craft a JSON descriptor with deeply nested namespace definitions that, when passed to Root.fromJSON() or Namespace.addJSON(), causes the library to recurse without a depth limit. The uncontrolled recursion exhausts the JavaScript call stack during descriptor loading, effectively halting the application that relies on protobuf.js and resulting in a denial of service. The flaw is a classic case of unbounded recursion (CWE‑674).

Affected Systems

The issue affects the protobuf.js library distributed by the protobufjs organisation. All versions of protobuf.js released before 7.5.8 and before 8.2.0 are susceptible to this defect. Applying any later release of either 7.x or 8.x that incorporates the fix mitigates the risk.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity. No EPSS information is available, so the exploitation likelihood is uncertain, and the vulnerability is not catalogued in the CISA KEV. The most probable attack vector is that an application issuing or accepting a malicious JSON descriptor—such as a user‑provided schema or a configuration payload—could trigger the recursion. If an attacker controls the descriptor content, the application could be rendered unavailable, compromising availability for end users.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the protobuf.js library to version 7.5.8 or later, or 8.2.0 or later.
  • Avoid using Root.fromJSON() or Namespace.addJSON() with untrusted or user‑supplied JSON descriptors in affected versions.
  • Implement input validation or depth‑limit checks on JSON descriptors before passing them to the library, ensuring that excessively nested structures are rejected or truncated.

Generated by OpenCVE AI on May 13, 2026 at 18:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-jggg-4jg4-v7c6 protobufjs: Denial of Service via unbounded recursive JSON descriptor expansion
History
Type Values Removed Values Added
First Time appeared Protobuf
Protobuf protobuf
Vendors & Products Protobuf
Protobuf protobuf
Type Values Removed Values Added
First Time appeared Protobufjs Project
Protobufjs Project protobufjs
CPEs cpe:2.3:a:protobufjs_project:protobufjs:*:*:*:*:*:node.js:*:*
Vendors & Products Protobufjs Project
Protobufjs Project protobufjs
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 7.5.8 and 8.2.0, 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. This vulnerability is fixed in 7.5.8 and 8.2.0.
Title protobufjs: Denial of Service via unbounded recursive JSON descriptor expansion
Weaknesses CWE-674
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 13, 2026, 6:20 PM
Reserved
May 13, 2026, 6:54 AM
Status
Analyzed
Published
May 13, 2026, 4:17 PM
Modified
Nov 11, 2026, 8:10 PM