CVE-2026-41242
Code Injection in protobufjs via Malicious "type" Field Decoding
Publication date: 2026-04-18
Last updated on: 2026-04-23
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| protobufjs_project | protobufjs | to 7.5.5 (exc) |
| protobufjs_project | protobufjs | 8.0.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-94 | The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in protobufjs versions prior to 8.0.1 and 7.5.5. It allows attackers to inject arbitrary code into the "type" fields of protobuf definitions. When these definitions are used to decode objects, the injected code executes, potentially leading to malicious actions.
How can this vulnerability impact me? :
The vulnerability can lead to arbitrary code execution during the decoding of protobuf objects. This means an attacker could run malicious code within your environment, potentially compromising system integrity, stealing data, or causing other harmful effects.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, you should upgrade protobufjs to version 8.0.1 or 7.5.5 or later, as these versions contain patches that fix the arbitrary code injection issue in the "type" fields of protobuf definitions.