Vulnerability · Published May 13, 2026 · Assigned by GitHub_M

CVE-2026-44293protobufjs: Code injection through bytes field defaults in generated toObject code

High 7.1

In plain English

A high-severity code injection in protobuf.js from protobufjs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.1High
Exploit odds (30 days)0.4%top 64.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 7.5.6 and 8.0.2, protobufjs generated JavaScript for toObject conversion could include an unsafe expression derived from a schema-controlled bytes field default value. A crafted descriptor with a non-string default value for a bytes field could cause attacker-controlled code to be emitted into the generated conversion function. This vulnerability is fixed in 7.5.6 and 8.0.2.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmprotobufjs7.5.6GHSA-66ff-xgx4-vchm
npmprotobufjs8.0.2GHSA-66ff-xgx4-vchm

Affected products (as reported)

VendorProductVersions
protobufjs protobuf.js < 7.5.6>= 8.0.0, < 8.0.2

Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:H

References