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
CVE-2026-41242 affects protobuf.js, a library that compiles protobuf definitions into JavaScript functions. In versions before 7.5.5, an attacker can inject arbitrary code into the "type" fields of protobuf definitions. This injected code executes during the decoding process of objects using those definitions, resulting in a critical code injection vulnerability (CWE-94). The vulnerability has a CVSS 4.0 score of 9.4, indicating critical severity. Versions 7.5.5 and 8.0.1 include patches that fix this issue. Red Hat advisories reference this CVE and provide additional context but do not explicitly state new patches beyond the version fixes.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code during the decoding of protobuf objects, potentially leading to full compromise of the application using protobuf.js. The vulnerability is critical due to the high impact on confidentiality, integrity, and availability, as reflected by the CVSS score of 9.4.
Mitigation Recommendations
Upgrade protobuf.js to version 7.5.5 or later, as these versions include patches that fix the code injection vulnerability. Since the vendor advisory and CVE description confirm the fix in 7.5.5 and 8.0.1, applying these updates is the recommended remediation. No additional mitigations or temporary fixes are documented in the vendor advisory.
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
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
CVE-2026-41242 affects protobuf.js, a library that compiles protobuf definitions into JavaScript functions. In versions before 7.5.5, an attacker can inject arbitrary code into the "type" fields of protobuf definitions. This injected code executes during the decoding process of objects using those definitions, resulting in a critical code injection vulnerability (CWE-94). The vulnerability has a CVSS 4.0 score of 9.4, indicating critical severity. Versions 7.5.5 and 8.0.1 include patches that fix this issue. Red Hat advisories reference this CVE and provide additional context but do not explicitly state new patches beyond the version fixes.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code during the decoding of protobuf objects, potentially leading to full compromise of the application using protobuf.js. The vulnerability is critical due to the high impact on confidentiality, integrity, and availability, as reflected by the CVSS score of 9.4.
Mitigation Recommendations
Upgrade protobuf.js to version 7.5.5 or later, as these versions include patches that fix the code injection vulnerability. Since the vendor advisory and CVE description confirm the fix in 7.5.5 and 8.0.1, applying these updates is the recommended remediation. No additional mitigations or temporary fixes are documented in the vendor advisory.
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
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-41242","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:21338","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:26234","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:24977","vendor":"Red Hat"}]
Threat ID: 69e46a7a19fe3cd2cde33d17
Added to database: 04/19/2026, 05:39:06 UTC
Last enriched: 07/18/2026, 14:46:14 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 618
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.