CVE-2026-41242: CWE-94: Improper Control of Generation of Code ('Code Injection') in protobufjs protobuf.js
protobufjs compiles protobuf definitions into JavaScript (JS) functions. In versions prior to 8.0.1 and 7.5.5, attackers can inject arbitrary code in the "type" fields of protobuf definitions, which will then execute during object decoding using that definition. Versions 8.0.1 and 7.5.5 patch the issue.
AI Analysis
Technical Summary
protobufjs compiles protobuf definitions into JavaScript functions. In affected versions (<7.5.5 and >=8.0.0-experimental but <8.0.1), attackers can inject arbitrary code into the "type" fields of protobuf definitions. This injected code executes during the decoding process of objects using these definitions, constituting a code injection vulnerability (CWE-94). The vulnerability is critical with a CVSS 4.0 score of 9.4. Fixed versions 7.5.5 and 8.0.1 mitigate this issue.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code during protobuf object decoding, which can lead to full compromise of the application environment running protobuf.js. The vulnerability is network exploitable with low attack complexity and no user interaction required, increasing risk. The high CVSS vector metrics indicate high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Fixed versions 7.5.5 and 8.0.1 of protobuf.js address this vulnerability. Users should upgrade to these or later versions to remediate the issue. Patch status is not explicitly confirmed beyond version information; therefore, verify the vendor's official advisory or repository for the latest remediation guidance. No additional mitigations are specified.
CVE-2026-41242: CWE-94: Improper Control of Generation of Code ('Code Injection') in protobufjs protobuf.js
Description
protobufjs compiles protobuf definitions into JavaScript (JS) functions. In versions prior to 8.0.1 and 7.5.5, attackers can inject arbitrary code in the "type" fields of protobuf definitions, which will then execute during object decoding using that definition. Versions 8.0.1 and 7.5.5 patch the issue.
CVSS v4.0
Score 9.4critical
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
protobufjs compiles protobuf definitions into JavaScript functions. In affected versions (<7.5.5 and >=8.0.0-experimental but <8.0.1), attackers can inject arbitrary code into the "type" fields of protobuf definitions. This injected code executes during the decoding process of objects using these definitions, constituting a code injection vulnerability (CWE-94). The vulnerability is critical with a CVSS 4.0 score of 9.4. Fixed versions 7.5.5 and 8.0.1 mitigate this issue.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code during protobuf object decoding, which can lead to full compromise of the application environment running protobuf.js. The vulnerability is network exploitable with low attack complexity and no user interaction required, increasing risk. The high CVSS vector metrics indicate high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Fixed versions 7.5.5 and 8.0.1 of protobuf.js address this vulnerability. Users should upgrade to these or later versions to remediate the issue. Patch status is not explicitly confirmed beyond version information; therefore, verify the vendor's official advisory or repository for the latest remediation guidance. No additional mitigations are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-18T03:47:03.135Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e46a7a19fe3cd2cde33d17
Added to database: 4/19/2026, 5:39:06 AM
Last enriched: 4/27/2026, 12:22:04 AM
Last updated: 6/3/2026, 8:27:50 AM
Views: 473
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.