Code Injection via Type Field in Protobuf.js <8.0.1
CVE-2026-41242 Published on April 18, 2026
protobufjs has an arbitrary code execution issue
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.
Vulnerability Analysis
CVE-2026-41242 is exploitable with network access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. An automatable proof of concept (POC) exploit exists. The potential impact of an exploit of this vulnerability is considered to be very high.
Weakness Type
What is a Code Injection Vulnerability?
The software 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.
CVE-2026-41242 has been classified to as a Code Injection vulnerability or weakness.
Products Associated with CVE-2026-41242
Want to know whenever a new CVE is published for Red Hat products? stack.watch will email you.
Affected Versions
protobufjs protobuf.js:- Version < 7.5.5 is affected.
- Version >= 8.0.0-experimental, < 8.0.1 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.