7.5High

CVE-2026-48712protobufjs: Denial of service through unbounded Any expansion during JSON conversion

protobufjs protobuf.js Published: (4 months ago)

Description

protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 7.6.1 and 8.4.1, protobufjs could recurse without a depth limit while converting decoded messages to plain objects or JSON. This affected generated toObject() conversion and the custom google.protobuf.Any JSON conversion path. A crafted protobuf binary payload containing deeply nested Any values could cause the JavaScript call stack to be exhausted during conversion to JSON. This vulnerability is fixed in 7.6.1 and 8.4.1.

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.6.1, >= 8.0.0, < 8.4.1
protobufjs project protobufjs < 7.6.1

References and patches

CPE matches (NVD) (2)

  • cpe:2.3:a:protobufjs_project:protobufjs:*:*:*:*:*:node.js:*:* < 7.6.1
  • cpe:2.3:a:protobufjs_project:protobufjs:*:*:*:*:*:node.js:*:* ≥ 8.0.0 < 8.4.1