Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. protobufjs
  4. ›
  5. CVE-2026-45740

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

May 19, 2026

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.

References

  • github.com/advisories/GHSA-jggg-4jg4-v7c6
  • github.com/protobufjs/protobuf.js/security/advisories/GHSA-jggg-4jg4-v7c6
  • nvd.nist.gov/vuln/detail/CVE-2026-45740

Code Behaviors & Features

Detect and mitigate CVE-2026-45740 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 7.5.8, all versions starting from 8.0.0 before 8.2.0

Fixed versions

  • 7.5.8
  • 8.2.0

Solution

Upgrade to versions 7.5.8, 8.2.0 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

npm/protobufjs/CVE-2026-45740.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:01 +0000.