CVE-2026-44293: 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 generated JavaScript for toObject conversion could include an unsafe expression derived from a schema-controlled bytes field default value. A crafted descriptor with a non-string default value for a bytes field could cause attacker-controlled code to be emitted into the generated conversion function. This vulnerability is fixed in 7.5.6 and 8.0.2.
AI Analysis
Technical Summary
protobufjs versions prior to 7.5.6 and 8.0.2 generate JavaScript code for the toObject conversion function that can include unsafe expressions derived from schema-controlled bytes field default values. A crafted protobuf descriptor with a non-string default value for a bytes field can cause attacker-controlled code to be emitted into the generated conversion function, enabling arbitrary code execution in the Node.js process context. This vulnerability (CWE-94) requires low privileges to exploit and does not require user interaction. It is fixed upstream in protobufjs 7.5.6 and 8.0.2. Red Hat advisories confirm the vulnerability affects their products that incorporate protobufjs and process attacker-influenced protobuf schemas at runtime. No practical mitigations other than upgrading are currently available.
Potential Impact
An attacker with the ability to supply or influence protobuf descriptors processed by the vulnerable application can achieve arbitrary code execution within the Node.js process context. This can lead to full compromise of the affected application, including confidentiality, integrity, and availability impacts. The vulnerability requires low privileges and no user interaction, making it relatively easy to exploit in environments where protobuf descriptors are attacker-controlled or influenced.
Mitigation Recommendations
A fix is available by upgrading protobufjs to version 7.5.6 or later, or 8.0.2 or later. Red Hat advisories recommend upgrading affected products that bundle protobufjs to versions including these fixes. No effective mitigations other than upgrading are currently available that meet Red Hat's criteria for ease of use, applicability, and stability.
CVE-2026-44293: 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 generated JavaScript for toObject conversion could include an unsafe expression derived from a schema-controlled bytes field default value. A crafted descriptor with a non-string default value for a bytes field could cause attacker-controlled code to be emitted into the generated conversion function. This vulnerability is fixed in 7.5.6 and 8.0.2.
CVSS v4.0
Score 7.7high
Affected software
protobufjs
protobuf.js
Run 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
protobufjs versions prior to 7.5.6 and 8.0.2 generate JavaScript code for the toObject conversion function that can include unsafe expressions derived from schema-controlled bytes field default values. A crafted protobuf descriptor with a non-string default value for a bytes field can cause attacker-controlled code to be emitted into the generated conversion function, enabling arbitrary code execution in the Node.js process context. This vulnerability (CWE-94) requires low privileges to exploit and does not require user interaction. It is fixed upstream in protobufjs 7.5.6 and 8.0.2. Red Hat advisories confirm the vulnerability affects their products that incorporate protobufjs and process attacker-influenced protobuf schemas at runtime. No practical mitigations other than upgrading are currently available.
Potential Impact
An attacker with the ability to supply or influence protobuf descriptors processed by the vulnerable application can achieve arbitrary code execution within the Node.js process context. This can lead to full compromise of the affected application, including confidentiality, integrity, and availability impacts. The vulnerability requires low privileges and no user interaction, making it relatively easy to exploit in environments where protobuf descriptors are attacker-controlled or influenced.
Mitigation Recommendations
A fix is available by upgrading protobufjs to version 7.5.6 or later, or 8.0.2 or later. Red Hat advisories recommend upgrading affected products that bundle protobufjs to versions including these fixes. No effective mitigations other than upgrading are currently available that meet Red Hat's criteria for ease of use, applicability, and stability.
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
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-44293","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:26234","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:26090","vendor":"Red Hat"}]
Threat ID: 6a049721cbff5d8610e00ec9
Added to database: 05/13/2026, 15:22:09 UTC
Last enriched: 08/13/2026, 16:35:00 UTC
Last updated: 09/13/2026, 10:01:31 UTC
Views: 108
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.
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.