CVE-2026-41242

Critical

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.

SeverityCritical
CVSS9.8
Exploit probability—
ProductProtobufjs
PublishedApr 18, 2026
First seenApr 18, 2026

How to fix

Affected products

ProductAffected versionsFixed in
protobufjs_project protobufjsv < 7.5.5, 8.0.07.5.5
protobufjsnpm8.0.0 ≤ v < 8.0.1, v < 7.5.5, 7.0.0 ≤ v < 7.5.5, v < 6.11.68.0.1, 7.5.5, 6.11.6

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.