CVE-2026-41242
Received Received - Intake
Code Injection in protobufjs via Malicious "type" Field Decoding

Publication date: 2026-04-18

Last updated on: 2026-04-23

Assigner: GitHub, Inc.

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 Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-04-18
Last Modified
2026-04-23
Generated
2026-05-07
AI Q&A
2026-04-18
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
protobufjs_project protobufjs to 7.5.5 (exc)
protobufjs_project protobufjs 8.0.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
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.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart