The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-45740

CVE-2026-45740: Protobufjs DoS Vulnerability Exploit

CVE-2026-45740 is a denial of service flaw in Protobufjs that allows attackers to exhaust the JavaScript call stack through deeply nested JSON descriptors. This article covers technical details, affected versions, and patches.

Published: May 17, 2026

CVE-2026-45740 Overview

CVE-2026-45740 affects protobufjs, a widely used Node.js library that compiles Protocol Buffer definitions into JavaScript functions. Versions prior to 7.5.8 and 8.2.0 recurse without a depth limit when expanding nested JSON descriptors through Root.fromJSON() and Namespace.addJSON(). A crafted JSON descriptor containing deeply nested namespace definitions exhausts the JavaScript call stack during descriptor loading. The flaw is tracked under [CWE-674] (Uncontrolled Recursion) and results in a denial of service condition for any application loading attacker-controlled descriptors.

Critical Impact

Remote attackers can crash Node.js services that parse untrusted protobuf JSON descriptors, causing high-impact availability loss without authentication or user interaction.

Affected Products

  • protobufjs versions prior to 7.5.8 (7.x branch)
  • protobufjs versions prior to 8.2.0 (8.x branch)
  • Node.js applications consuming the protobufjs_project:protobufjs package

Discovery Timeline

  • 2026-05-13 - CVE-2026-45740 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-45740

Vulnerability Analysis

The protobufjs library exposes Root.fromJSON() and Namespace.addJSON() to construct a runtime schema tree from a JSON descriptor object. These functions walk nested nested properties recursively to instantiate child namespaces, types, and enums. The implementation lacks any depth cap or iterative fallback, so each level of nesting consumes a JavaScript stack frame.

When an attacker provides a descriptor with thousands of nested namespaces, the recursive expansion exhausts the V8 call stack. The Node.js process raises a RangeError: Maximum call stack size exceeded and terminates the request handler. In long-running services that load descriptors at request time, this crashes worker processes and breaks downstream API consumers.

Root Cause

The root cause is uncontrolled recursion during descriptor expansion. The schema loader trusts the structural depth of the input JSON. No invariant enforces a maximum nesting level, and no counter tracks recursion depth across addJSON calls. Any caller that accepts protobuf descriptors from an untrusted source inherits the vulnerability.

Attack Vector

Exploitation requires network reachability to an endpoint that calls Root.fromJSON() or Namespace.addJSON() on attacker-supplied input. Common patterns include gRPC gateways, schema registries, and dynamic message brokers that accept JSON-encoded descriptors from clients. The attacker submits a small payload with deeply nested nested objects. No authentication, privileges, or user interaction are required.

No public proof-of-concept code is available. See the GitHub Security Advisory GHSA-jggg-4jg4-v7c6 for vendor technical details.

Detection Methods for CVE-2026-45740

Indicators of Compromise

  • Repeated RangeError: Maximum call stack size exceeded errors in Node.js application logs originating in protobufjs source frames such as Namespace.addJSON or Root.fromJSON.
  • Unexpected worker process restarts or container OOM-adjacent crashes correlated with inbound requests carrying protobuf JSON payloads.
  • HTTP or gRPC requests containing JSON bodies with abnormally deep nested object chains.

Detection Strategies

  • Inventory all services using protobufjs via Software Bill of Materials (SBOM) tooling and npm ls protobufjs to identify versions below 7.5.8 or 8.2.0.
  • Inspect request bodies at API gateways for JSON structures exceeding a reasonable nesting depth (for example, 32 levels) before they reach application code.
  • Correlate process crash telemetry with request traces to identify payloads that trigger stack exhaustion.

Monitoring Recommendations

  • Alert on stack trace patterns containing protobufjs frames and RangeError exceptions in centralized logging.
  • Track Node.js process restart counts and event loop stalls per service to surface availability regressions.
  • Monitor inbound JSON payload size and structural depth distributions for outliers indicative of probing.

How to Mitigate CVE-2026-45740

Immediate Actions Required

  • Upgrade protobufjs to 7.5.8 or 8.2.0 or later across all Node.js services and transitive dependencies.
  • Audit application code for calls to Root.fromJSON() and Namespace.addJSON() that consume untrusted input.
  • Restrict descriptor loading endpoints to authenticated, trusted clients until patching completes.

Patch Information

The maintainers fixed the issue in protobufjs7.5.8 and 8.2.0 by introducing depth enforcement during recursive descriptor expansion. Refer to the GitHub Security Advisory GHSA-jggg-4jg4-v7c6 for the official fix details and affected version ranges.

Workarounds

  • Validate and reject JSON descriptors whose nesting depth exceeds an application-specific bound before invoking protobufjs loaders.
  • Wrap descriptor loading in a worker thread or child process so stack exhaustion does not terminate the main service.
  • Prefer loading .proto files from trusted on-disk sources rather than dynamic JSON input from network clients.
bash
# Upgrade protobufjs to a patched release
npm install protobufjs@^8.2.0
# or for the 7.x branch
npm install protobufjs@^7.5.8

# Verify installed version
npm ls protobufjs

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechProtobufjs

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-674
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-44289: Protobufjs DoS Vulnerability

  • CVE-2026-44290: Protobufjs RCE Vulnerability

  • CVE-2026-44291: Protobufjs RCE Vulnerability

  • CVE-2026-44292: Protobufjs Privilege Escalation Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English