CVE-2026-44295: CWE-94: Improper Control of Generation of Code ('Code Injection') in protobufjs protobuf.js
CVE-2026-44295 is a high-severity vulnerability in protobufjs-cli, the command line add-on for protobuf.js. Before versions 1.2.1 and 2.0.2, the static code generation feature (pbjs) could produce unsafe JavaScript identifiers derived from schema-controlled names without proper sanitization. This flaw allows crafted schemas or JSON descriptors to inject unsafe code into the generated JavaScript output. The vulnerability is classified as CWE-94 (Improper Control of Generation of Code). It has a CVSS v3.
AI Analysis
Technical Summary
The vulnerability in protobufjs-cli's static code generation (pbjs) arises from insufficient sanitization of namespace, enum, service, or derived full names when generating static JavaScript code from schemas or JSON descriptors. This can lead to code injection (CWE-94), where unsafe JavaScript identifiers are emitted based on attacker-controlled input. Versions prior to 1.2.1 and 2.0.2 are affected. The vulnerability allows an attacker with limited privileges (PR:L) and requiring user interaction (UI:R) to execute injected code, impacting confidentiality and integrity. The vulnerability is fixed in protobuf.js versions 1.2.1 and 2.0.2.
Potential Impact
Successful exploitation can lead to code injection in the generated JavaScript output, potentially allowing an attacker to execute arbitrary code within the context of the application using protobuf.js. This impacts confidentiality and integrity of the affected system. There are no known exploits in the wild at this time.
Mitigation Recommendations
This vulnerability is fixed in protobuf.js versions 1.2.1 and 2.0.2. Users should upgrade to at least these versions to remediate the issue. Since no official patch links or advisories are provided, verify the upgrade through the official protobufjs project repositories or package managers. No additional mitigations are specified.
CVE-2026-44295: CWE-94: Improper Control of Generation of Code ('Code Injection') in protobufjs protobuf.js
Description
CVE-2026-44295 is a high-severity vulnerability in protobufjs-cli, the command line add-on for protobuf.js. Before versions 1.2.1 and 2.0.2, the static code generation feature (pbjs) could produce unsafe JavaScript identifiers derived from schema-controlled names without proper sanitization. This flaw allows crafted schemas or JSON descriptors to inject unsafe code into the generated JavaScript output. The vulnerability is classified as CWE-94 (Improper Control of Generation of Code). It has a CVSS v3.
CVSS v3.1
Score 8.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 vulnerability in protobufjs-cli's static code generation (pbjs) arises from insufficient sanitization of namespace, enum, service, or derived full names when generating static JavaScript code from schemas or JSON descriptors. This can lead to code injection (CWE-94), where unsafe JavaScript identifiers are emitted based on attacker-controlled input. Versions prior to 1.2.1 and 2.0.2 are affected. The vulnerability allows an attacker with limited privileges (PR:L) and requiring user interaction (UI:R) to execute injected code, impacting confidentiality and integrity. The vulnerability is fixed in protobuf.js versions 1.2.1 and 2.0.2.
Potential Impact
Successful exploitation can lead to code injection in the generated JavaScript output, potentially allowing an attacker to execute arbitrary code within the context of the application using protobuf.js. This impacts confidentiality and integrity of the affected system. There are no known exploits in the wild at this time.
Mitigation Recommendations
This vulnerability is fixed in protobuf.js versions 1.2.1 and 2.0.2. Users should upgrade to at least these versions to remediate the issue. Since no official patch links or advisories are provided, verify the upgrade through the official protobufjs project repositories or package managers. No additional mitigations are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-05T17:39:31.113Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a049721cbff5d8610e00ecf
Added to database: 05/13/2026, 15:22:09 UTC
Last enriched: 05/20/2026, 19:12:40 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 62
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.