5.3Medium

CVE-2026-45740protobufjs: Denial of Service via unbounded recursive JSON descriptor expansion

protobufjs protobuf.js Published: (6 months ago)

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.

Weakness (CWE): CWE-674

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
protobufjs protobuf.js < 7.5.8, >= 8.0.0, < 8.2.0
protobufjs project protobufjs < 7.5.8

References and patches

CPE matches (NVD) (2)

  • cpe:2.3:a:protobufjs_project:protobufjs:*:*:*:*:*:node.js:*:* < 7.5.8
  • cpe:2.3:a:protobufjs_project:protobufjs:*:*:*:*:*:node.js:*:* ≥ 8.0.0 < 8.2.0