p PatchFirst

CVE-2026-45740

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 5.3 · Medium · EPSS 0.3% · Fix available

Published
Updated

Stack: node

Affected products and versions

  • protobuf.js

    Versions
    • < 7.5.8: Affected
    • >= 8.0.0, < 8.2.0: Affected

    No fix published

  • protobufjs npm

    Affected ranges
    • SEMVER: < 7.5.8

    Update to 7.5.8

  • protobufjs npm

    Affected ranges
    • SEMVER: ≥ 8.0.0, < 8.2.0

    Update to 8.2.0

Original sources

Check your server →