CVE-2026-41242

Severity CVSS v4.0:
CRITICAL
Type:
CWE-94 Code Injection
Publication date:
18/04/2026
Last modified:
23/04/2026

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.

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:protobufjs_project:protobufjs:*:*:*:*:*:node.js:*:* 7.5.5 (excluding)
cpe:2.3:a:protobufjs_project:protobufjs:8.0.0:*:*:*:*:node.js:*:*