Arbitrary Code Injection Affecting protobufjs package, versions <7.5.6>=8.0.0-experimental <8.0.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-PROTOBUFJS-16643421
  • published14 May 2026
  • disclosed12 May 2026
  • creditMichael Baraniak

Introduced: 12 May 2026

NewCVE-2026-44293  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade protobufjs to version 7.5.6, 8.0.2 or higher.

Overview

protobufjs is a protocol buffer for JavaScript (& TypeScript).

Affected versions of this package are vulnerable to Arbitrary Code Injection in the toObject function when handling a schema-controlled bytes field default value. An attacker can execute arbitrary JavaScript code by providing a crafted descriptor with a malicious default value for a bytes field, which is then used in the generated conversion function.

CVSS Base Scores

version 4.0
version 3.1