CVE-2026-41242

protobufjs has an arbitrary code execution issue

Published Apr 18, 2026 CVSS 4.0 · 9.4 Critical EPSS 1.4% KEV · Not listed
Description
protobufjs compiles protobuf definitions into JavaScript (JS) functions. In versions prior to 8.0.1, 7.5.5, and 6.11.6, 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, 7.5.5, and 6.11.6 patch the issue.

Analysis

AI-generated

Technical impact

The protobuf.js library compiles protobuf definitions into JavaScript functions. In versions prior to 8.0.1, 7.5.5, and 6.11.6, a malicious actor can inject arbitrary code in the "type" fields of protobuf definitions. When the application decodes a message using that definition, the injected code executes in the application’s context, enabling arbitrary code execution. This flaw is a code injection vulnerability (CWE‑94).

Affected Systems

The vulnerability affects all deployments of protobuf.js that use a version earlier than 8.0.1 or 7.5.5. The affected product is protobufjs: protobuf.js. Validated mitigations are available in releases 7.5.5 and 8.0.1, which remove the ability to inject code via the "type" field.

Risk and Exploitability

The CVSS score of 9.4 indicates a critical severity. The EPSS score of 0.00774 indicates a very low probability that the vulnerability will be exploited in the near term, but the high value still signals that an attacker could achieve arbitrary code execution if the flaw is successfully leveraged. The vulnerability is not listed in CISA’s KEV catalog, but that does not reduce its potential impact. The attack vector is likely local or by delivering malicious protobuf messages to an application that decodes them, making any process with access to such messages a potential target.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade protobuf.js to at least version 8.0.1 or 7.5.5, applying the new releases that patch the code injection flaw.
  • If an immediate upgrade is not possible, reject or sanitize any untrusted protobuf definitions before decoding, ensuring that the "type" field cannot contain executable code.
  • Run vulnerability scanning to detect any remaining use of older releases.
  • Consider executing the decoding logic in a sandboxed process or environment with limited privileges to reduce potential impact.

Generated by OpenCVE AI on November 3, 2026 at 18:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-xq3m-2v4x-88gg protobufjs has an arbitrary code execution issue
History
Type Values Removed Values Added
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. protobufjs compiles protobuf definitions into JavaScript (JS) functions. In versions prior to 8.0.1, 7.5.5, and 6.11.6, 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, 7.5.5, and 6.11.6 patch the issue.
References
Type Values Removed Values Added
First Time appeared Protobufjs Project
Protobufjs Project protobufjs
CPEs cpe:2.3:a:protobufjs_project:protobufjs:*:*:*:*:*:node.js:*:*
cpe:2.3:a:protobufjs_project:protobufjs:8.0.0:*:*:*:*:node.js:*:*
Vendors & Products Protobufjs Project
Protobufjs Project protobufjs
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Protobuf
Protobuf protobuf
Vendors & Products Protobuf
Protobuf protobuf
Type Values Removed Values Added
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.
Title protobufjs has an arbitrary code execution issue
Weaknesses CWE-94
References
Metrics cvssV4_0

{'score': 9.4, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 3, 2026, 4:07 PM
Reserved
Apr 18, 2026, 3:47 AM
Status
Modified
Published
Apr 18, 2026, 5:16 PM
Modified
Nov 3, 2026, 5:18 PM
Severity
Important
Public date
Apr 18, 2026, 4:18 PM