CVE 7.7 HIGH

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

7.7 / 10
HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

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.

Basic Information

ID CVE-2026-44293
Source GitHub_M
Published May 13, 2026 at 14:43

Affected Product

Vendor protobufjs
Product protobuf.js
Version < 7.5.6
Affected Versions protobufjs protobuf.js < 7.5.6
protobufjs protobuf.js >= 8.0.0, < 8.0.2

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.