CVE-2026-44291: CWE-94: Improper Control of Generation of Code ('Code Injection') in protobufjs protobuf.js
protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 7.5.6 and 8.0.2, protobufjs used plain objects with inherited prototypes for internal type lookup tables used by generated encode and decode functions. If Object.prototype had already been polluted, those lookup tables could resolve attacker-controlled inherited properties as valid protobuf type information. This could cause attacker-controlled strings to be emitted into generated JavaScript code. This vulnerability is fixed in 7.5.6 and 8.0.2.
AI Analysis
Technical Summary
protobufjs compiles protobuf definitions into JavaScript functions and used plain objects with inherited prototypes for internal type lookup tables in affected versions. This design allowed polluted Object.prototype properties to be resolved as valid protobuf type information, causing attacker-controlled strings to be emitted into generated JavaScript code, constituting a code injection vulnerability (CWE-94). The vulnerability is fixed in protobuf.js versions 7.5.6 and 8.0.2.
Potential Impact
Successful exploitation could allow an attacker to inject arbitrary code into generated JavaScript functions, potentially leading to full compromise of applications using the vulnerable protobuf.js versions. The CVSS score of 8.1 reflects high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
The vulnerability is fixed in protobuf.js versions 7.5.6 and 8.0.2. Users should upgrade to at least these versions to remediate the issue. Patch status is not explicitly confirmed in the vendor advisory content provided, but the description clearly states the fix versions. No other mitigation or temporary workaround is indicated.
CVE-2026-44291: CWE-94: Improper Control of Generation of Code ('Code Injection') in protobufjs protobuf.js
Description
protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 7.5.6 and 8.0.2, protobufjs used plain objects with inherited prototypes for internal type lookup tables used by generated encode and decode functions. If Object.prototype had already been polluted, those lookup tables could resolve attacker-controlled inherited properties as valid protobuf type information. This could cause attacker-controlled strings to be emitted into generated JavaScript code. This vulnerability is fixed in 7.5.6 and 8.0.2.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
protobufjs compiles protobuf definitions into JavaScript functions and used plain objects with inherited prototypes for internal type lookup tables in affected versions. This design allowed polluted Object.prototype properties to be resolved as valid protobuf type information, causing attacker-controlled strings to be emitted into generated JavaScript code, constituting a code injection vulnerability (CWE-94). The vulnerability is fixed in protobuf.js versions 7.5.6 and 8.0.2.
Potential Impact
Successful exploitation could allow an attacker to inject arbitrary code into generated JavaScript functions, potentially leading to full compromise of applications using the vulnerable protobuf.js versions. The CVSS score of 8.1 reflects high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
The vulnerability is fixed in protobuf.js versions 7.5.6 and 8.0.2. Users should upgrade to at least these versions to remediate the issue. Patch status is not explicitly confirmed in the vendor advisory content provided, but the description clearly states the fix versions. No other mitigation or temporary workaround is indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-05T17:39:31.112Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a049717cbff5d8610e0032e
Added to database: 5/13/2026, 3:21:59 PM
Last enriched: 5/13/2026, 3:36:48 PM
Last updated: 5/13/2026, 5:08:16 PM
Views: 2
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.