CVE-2026-45740 PUBLISHED

protobufjs: Denial of Service via unbounded recursive JSON descriptor expansion

Assigner: GitHub_M
Reserved: 13.05.2026 Published: 13.05.2026 Updated: 13.05.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS Score: 5.3

Product Status

Vendor protobufjs
Product protobuf.js
Versions
  • Version < 7.5.8 is affected
  • Version >= 8.0.0, < 8.2.0 is affected

References

Problem Types

  • CWE-674: Uncontrolled Recursion CWE