CVE-2026-41242 protobufjs has an arbitrary code execution issue

Critical 9.4 Published Updated

Attackers can inject arbitrary code into protobuf definitions that executes during object decoding, allowing remote code execution in applications using the library.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-41242?

CVE-2026-41242 is a critical code injection vulnerability in protobufjs protobuf.js, published on 18 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-94

Which versions are affected by CVE-2026-41242?

4 open source packages ship an affected version, including protobufjs. It affects 1 product.

PackageAffectedFixed in
protobufjs npmAll versions7.5.5
protobufjs npmAll versions7.5.5
protobufjs npmFrom 8.0.08.0.1
protobufjs npmFrom 8.0.08.0.1

Products include Protobufjs Project Protobufjs.

How do I fix CVE-2026-41242?

Upgrade protobufjs to a fixed version for your release line: 7.5.5 or 8.0.1.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-41242 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-41242 exists.

Public exploit code: 2 proofs of concept on GitHub.

Sources

Also known as CLEANSTART-2026-BY01159, CLEANSTART-2026-XC94160, CLSA-2026-1778114667, ECHO-bb3f-55f6-c0f6, GHSA-xq3m-2v4x-88gg, MINI-26v9-9486-q27w and 14 more.

Is CVE-2026-41242 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free