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
The protobufjs library compiles protobuf definitions into JavaScript functions. In versions before 7.5.6 and 8.0.2, the generated JavaScript for toObject conversion could include unsafe expressions derived from schema-controlled bytes field default values. Specifically, a crafted protobuf descriptor with a non-string default value for a bytes field could lead to arbitrary code injection by causing attacker-controlled code to be emitted into the generated conversion function. This vulnerability is identified as CWE-94 (Improper Control of Generation of Code) and has a CVSS 4.0 base score of 7.7, indicating high severity. The vulnerability is fixed in protobufjs versions 7.5.6 and 8.0.2. Red Hat advisories confirm the issue and provide updates for affected products.
Potential Impact
An attacker who can supply a crafted protobuf descriptor with a non-string default value for a bytes field can cause arbitrary JavaScript code execution within the context of the protobuf.js toObject conversion function. This can lead to high impact including code execution with privileges of the running process. The vulnerability affects protobuf.js users who process untrusted protobuf descriptors and use affected versions prior to 7.5.6.
Mitigation Recommendations
Upgrade protobuf.js to version 7.5.6 or later, or 8.0.2 or later, where this vulnerability is fixed. Red Hat provides security advisories and patches for affected products incorporating protobuf.js. No alternative mitigations are documented; applying the official fix is required to remediate this vulnerability.
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
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
The protobufjs library compiles protobuf definitions into JavaScript functions. In versions before 7.5.6 and 8.0.2, the generated JavaScript for toObject conversion could include unsafe expressions derived from schema-controlled bytes field default values. Specifically, a crafted protobuf descriptor with a non-string default value for a bytes field could lead to arbitrary code injection by causing attacker-controlled code to be emitted into the generated conversion function. This vulnerability is identified as CWE-94 (Improper Control of Generation of Code) and has a CVSS 4.0 base score of 7.7, indicating high severity. The vulnerability is fixed in protobufjs versions 7.5.6 and 8.0.2. Red Hat advisories confirm the issue and provide updates for affected products.
Potential Impact
An attacker who can supply a crafted protobuf descriptor with a non-string default value for a bytes field can cause arbitrary JavaScript code execution within the context of the protobuf.js toObject conversion function. This can lead to high impact including code execution with privileges of the running process. The vulnerability affects protobuf.js users who process untrusted protobuf descriptors and use affected versions prior to 7.5.6.
Mitigation Recommendations
Upgrade protobuf.js to version 7.5.6 or later, or 8.0.2 or later, where this vulnerability is fixed. Red Hat provides security advisories and patches for affected products incorporating protobuf.js. No alternative mitigations are documented; applying the official fix is required to remediate 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
- 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: 07/30/2026, 00:05:56 UTC
Last updated: 07/31/2026, 21:26:47 UTC
Views: 85
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.