CVE-2026-45740: CWE-674: Uncontrolled Recursion in protobufjs protobuf.js
protobuf.js versions prior to 7.5.8 and between 8.0.0 and before 8.2.0 have an uncontrolled recursion vulnerability in the handling of nested JSON descriptors. This can cause the JavaScript call stack to be exhausted, leading to a denial of service during descriptor loading. The issue arises from the Root.
AI Analysis
Technical Summary
The protobuf.js library, used to compile protobuf definitions into JavaScript functions, contained an uncontrolled recursion vulnerability (CWE-674) in versions before 7.5.8 and between 8.0.0 and 8.2.0. Specifically, the functions Root.fromJSON() and Namespace.addJSON() could recurse indefinitely when processing crafted JSON descriptors with deeply nested namespaces, exhausting the JavaScript call stack and causing a denial of service. This vulnerability is addressed in versions 7.5.8 and 8.2.0 of protobuf.js.
Potential Impact
An attacker can cause a denial of service by supplying a crafted JSON descriptor with deeply nested namespaces, leading to exhaustion of the JavaScript call stack during descriptor loading. There is no impact on confidentiality or integrity, only availability is affected.
Mitigation Recommendations
Upgrade protobuf.js to version 7.5.8 or later, or 8.2.0 or later, where this uncontrolled recursion vulnerability is fixed. Patch status is confirmed by the version information in the advisory. No other mitigations are indicated.
CVE-2026-45740: CWE-674: Uncontrolled Recursion in protobufjs protobuf.js
Description
protobuf.js versions prior to 7.5.8 and between 8.0.0 and before 8.2.0 have an uncontrolled recursion vulnerability in the handling of nested JSON descriptors. This can cause the JavaScript call stack to be exhausted, leading to a denial of service during descriptor loading. The issue arises from the Root.
CVSS v3.1
Score 5.3medium
Affected software
pkg:npm/protobufjs/protobuf.jsRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The protobuf.js library, used to compile protobuf definitions into JavaScript functions, contained an uncontrolled recursion vulnerability (CWE-674) in versions before 7.5.8 and between 8.0.0 and 8.2.0. Specifically, the functions Root.fromJSON() and Namespace.addJSON() could recurse indefinitely when processing crafted JSON descriptors with deeply nested namespaces, exhausting the JavaScript call stack and causing a denial of service. This vulnerability is addressed in versions 7.5.8 and 8.2.0 of protobuf.js.
Potential Impact
An attacker can cause a denial of service by supplying a crafted JSON descriptor with deeply nested namespaces, leading to exhaustion of the JavaScript call stack during descriptor loading. There is no impact on confidentiality or integrity, only availability is affected.
Mitigation Recommendations
Upgrade protobuf.js to version 7.5.8 or later, or 8.2.0 or later, where this uncontrolled recursion vulnerability is fixed. Patch status is confirmed by the version information in the advisory. No other mitigations are indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-13T06:54:34.219Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a049721cbff5d8610e00ee1
Added to database: 05/13/2026, 15:22:09 UTC
Last enriched: 05/20/2026, 19:15:07 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 262
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.