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
Weakness typeCWE-94Code injection
How to fix
Update
- protobufjs_project protobufjs7.5.5 or later
- protobufjs8.0.1, 7.5.5, 6.11.6 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| protobufjs_project protobufjs | v < 7.5.5, 8.0.0 | 7.5.5 |
| protobufjsnpm | 8.0.0 ≤ v < 8.0.1, v < 7.5.5, 7.0.0 ≤ v < 7.5.5, v < 6.11.6 | 8.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.