Skip to main content

protobufjs CVE-2026-45740

| EUVDEUVD-2026-30039 MEDIUM
Uncontrolled Recursion (CWE-674)
2026-05-13 GitHub_M GHSA-jggg-4jg4-v7c6
5.3
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker crafts malicious JSON descriptor
  2. Delivery
    Delivers descriptor to vulnerable parser
  3. Exploit
    Root.fromJSON() or Namespace.addJSON() begins recursive expansion
  4. Install
    Deeply nested namespaces accumulate on call stack
  5. C2
    Call stack limit exceeded
  6. Execute
    JavaScript process crashes
  7. Impact
    Denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

The vulnerability can be exploited only when the application calls Root.fromJSON() or Namespace.addJSON() with a JSON descriptor sourced from an attacker-controlled or untrusted input stream. Applications that load only hardcoded or pre-validated protobuf descriptor files from trusted sources are not vulnerable. The descriptor parsing must be reachable from the network (either via HTTP/REST API, message queue, or other network service) for remote exploitation. Exploitation does not require authentication (PR:N in CVSS vector) and works against default configurations. However, if the application is configured to parse descriptors only from local, validated sources, or if descriptor parsing is internal to the application and not exposed to external input, the attack surface is eliminated. The key limiting factor is whether untrusted descriptor input reaches the vulnerable parsing functions.

Impact

The CVSS score of 5.3 (Medium) reflects a network-accessible denial-of-service vulnerability with low attack complexity and no authentication requirement, but limited scope and impact (availability only - no confidentiality or integrity breach). The EPSS score and active exploitation status are not provided in the data; however, KEV listing is not indicated, suggesting no confirmed active exploitation in the wild at time of analysis. The real-world risk depends critically on deployment context: applications that parse protobuf JSON descriptors from untrusted sources (e.g., user-supplied files, API inputs, or network streams) face direct exposure. Applications parsing only trusted, internal descriptor definitions face minimal risk. The attack complexity is low (AC:L) and requires no special privileges (PR:N), making this exploitable by any network participant if descriptor parsing is exposed. The impact is denial of service only - no data exfiltration or system compromise - which moderates urgency relative to code-execution vulnerabilities.

Exploit ScenarioDerived

An attacker crafts a malicious protobuf JSON descriptor file containing a namespace structure nested to extreme depth (potentially thousands of levels). The attacker delivers this descriptor to an application that parses user-uploaded protobuf definitions or fetches them from an untrusted source. When Root.fromJSON() or Namespace.addJSON() processes this descriptor, recursive calls accumulate on the call stack without limit until JavaScript's maximum call stack depth is reached, causing the process to crash. This results in denial of service, rendering the application unavailable to legitimate users.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 13, 2026

Uncontrolled recursion in protobufjs versions prior to 7.5.8 and 8.2.0 allows remote attackers to exhaust the JavaScript call stack by providing crafted JSON descriptors with deeply nested namespace definitions to Root.fromJSON() or Namespace.addJSON(), causing a denial of service. The vulnerability requires only network access and no authentication, though exploitation depends on the application parsing untrusted protobuf JSON descriptors.

RemediationAI

Upgrade protobufjs to version 7.5.8 or 8.2.0 or later. For npm-based projects, run 'npm update protobufjs' to fetch the patched version, or explicitly install 'npm install protobufjs@7.5.8' or 'npm install protobufjs@8.2.0' depending on the major version in use. The fix implements recursion depth limits in Root.fromJSON() and Namespace.addJSON(), preventing stack exhaustion from deeply nested descriptors. No workarounds are available for older versions; patching is the only remediation. If immediate upgrading is impossible, apply defense-in-depth measures including rate-limiting and request size limits on any endpoints that accept protobuf JSON descriptors, though these are not substitutes for patching. Verify patch application by checking package.json lock files and running 'npm list protobufjs' to confirm the installed version meets the minimum fixed versions. The GitHub Security Advisory (https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-jggg-4jg4-v7c6) contains additional guidance.

Affected VersionsENISA

protobuf.js 8.0.0, < 8.2.0
protobuf.js < 7.5.8

Affected Packages

npm protobufjs fix: 7.5.8, 8.2.0
euvd protobuf_js fix: 7.5.8, 8.2.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

protobufjs is a JavaScript implementation of Protocol Buffers that dynamically compiles protobuf message definitions from JSON descriptors into executable JavaScript functions. The vulnerability exists in the recursive descriptor expansion logic within Root.fromJSON() and Namespace.addJSON() methods, which traverse and process nested namespace structures without enforcing a recursion depth limit (CWE-674: Uncontrolled Recursion). When processing a maliciously crafted JSON descriptor containing exceptionally deep nesting of namespace definitions, the call stack grows until JavaScript's maximum call stack size is exceeded, triggering a stack overflow that terminates the affected process. This is a classic denial-of-service vector against recursive parsing logic.

Know when Protobufjs gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Red Hat 7.5 HIGH

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Lifecycle Timeline

2
Patch available
May 13, 2026 - 16:33 EUVD
CVE Published
May 13, 2026 - 14:46 nvd
MEDIUM 5.3

DescriptionGitHub Advisory

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1,832 npm packages depend on protobufjs (158 direct, 1,675 indirect)

Ecosystem-wide dependent count for version 8.0.0.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy