CVE-2026-44293: CWE-94: Improper Control of Generation of Code ('Code Injection') in protobufjs protobuf.js
CVE-2026-44293 is a high-severity code injection vulnerability in protobufjs's protobuf. js library. Versions prior to 7. 5. 6 and between 8. 0. 0 and 8. 0. 2 generate JavaScript conversion functions that may include unsafe expressions derived from schema-controlled bytes field default values. An attacker can craft a protobuf descriptor with a non-string default value for a bytes field, causing attacker-controlled code to be emitted into the generated toObject conversion function.
AI Analysis
Technical Summary
The protobufjs library compiles protobuf definitions into JavaScript functions. In affected versions (<7.5.6 and >=8.0.0 <8.0.2), the toObject conversion function generation process can include unsafe expressions derived from bytes field default values controlled by the schema. If a crafted descriptor uses a non-string default value for a bytes field, this can lead to attacker-controlled code being injected into the generated JavaScript function, constituting a code injection vulnerability (CWE-94). This vulnerability is addressed in protobufjs versions 7.5.6 and 8.0.2.
Potential Impact
Successful exploitation could allow an attacker with the ability to supply crafted protobuf descriptors to inject arbitrary JavaScript code into the generated toObject conversion functions. This could lead to execution of attacker-controlled code within the context of the application using protobuf.js, potentially compromising application integrity and security. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade protobufjs to version 7.5.6 or later, or to version 8.0.2 or later, where this vulnerability is fixed. Patch status is not explicitly stated in the advisory, but these versions contain the fix. Users should verify their protobuf.js version and update accordingly to mitigate this vulnerability.
CVE-2026-44293: CWE-94: Improper Control of Generation of Code ('Code Injection') in protobufjs protobuf.js
Description
CVE-2026-44293 is a high-severity code injection vulnerability in protobufjs's protobuf. js library. Versions prior to 7. 5. 6 and between 8. 0. 0 and 8. 0. 2 generate JavaScript conversion functions that may include unsafe expressions derived from schema-controlled bytes field default values. An attacker can craft a protobuf descriptor with a non-string default value for a bytes field, causing attacker-controlled code to be emitted into the generated toObject conversion function.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The protobufjs library compiles protobuf definitions into JavaScript functions. In affected versions (<7.5.6 and >=8.0.0 <8.0.2), the toObject conversion function generation process can include unsafe expressions derived from bytes field default values controlled by the schema. If a crafted descriptor uses a non-string default value for a bytes field, this can lead to attacker-controlled code being injected into the generated JavaScript function, constituting a code injection vulnerability (CWE-94). This vulnerability is addressed in protobufjs versions 7.5.6 and 8.0.2.
Potential Impact
Successful exploitation could allow an attacker with the ability to supply crafted protobuf descriptors to inject arbitrary JavaScript code into the generated toObject conversion functions. This could lead to execution of attacker-controlled code within the context of the application using protobuf.js, potentially compromising application integrity and security. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade protobufjs to version 7.5.6 or later, or to version 8.0.2 or later, where this vulnerability is fixed. Patch status is not explicitly stated in the advisory, but these versions contain the fix. Users should verify their protobuf.js version and update accordingly to mitigate this vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-05T17:39:31.112Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a049721cbff5d8610e00ec9
Added to database: 5/13/2026, 3:22:09 PM
Last enriched: 5/13/2026, 3:36:42 PM
Last updated: 5/13/2026, 5:11:53 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.