CVE-2026-41242 PUBLISHED

protobufjs has an arbitrary code execution issue

Assigner: GitHub_M
Reserved: 18.04.2026 Published: 18.04.2026 Updated: 18.04.2026

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.

Metrics

CVSS 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
CVSS Score: 9.4

Product Status

Vendor protobufjs
Product protobuf.js
Versions
  • Version < 7.5.5 is affected
  • Version >= 8.0.0-experimental, < 8.0.1 is affected

References

Problem Types

  • CWE-94: Improper Control of Generation of Code ('Code Injection') CWE