Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2026-41242: Arbitrary JavaScript execution in protobufjs schema processing

Published Apr 18, 2026 · Updated 18 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS9.4Critical · v4
EPSS1.4%73rd percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Protobufjs Project
IdentifiersCVE-2026-41242CWE-94 · Improper Control of Generation of…

CVE-2026-41242 is a code injection vulnerability in protobufjs releases before the respective fixed versions 6.11.6, 7.5.5, and 8.0.1. protobufjs compiles Protocol Buffers definitions into JavaScript functions. Insufficient validation of type fields, names, and references in attacker-controlled protobuf schemas or JSON descriptors allows injected JavaScript to reach runtime code generation through reflection APIs. The injected code executes when the application uses an affected generated-code path, including object decoding with the malicious definition.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation permits arbitrary JavaScript execution within the consuming application's process, potentially compromising data confidentiality, integrity, and service availability with the application's permissions. Applications that decode messages exclusively with trusted, application-defined schemas are not directly affected by this schema-injection mechanism.

Mitigation

If you can’t patch tonight, do this now.

Do not load protobuf definitions or JSON descriptors from untrusted sources into affected protobufjs versions. If untrusted schemas must be accepted, restrict or validate them before loading and process them in an isolated environment with minimal privileges. No vendor workaround is specified for the affected Tanzu product releases.

Remediation

Patch, then assume compromise.

Upgrade protobufjs to version 6.11.6, 7.5.5, or 8.0.1, or a later supported version in the applicable release line. Update applications and bundled dependencies that incorporate vulnerable protobufjs releases.

Public exploits

Exploits

1 exploit validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
CVE-2026-41242Repository contains a working exploit and a self-contained vulnerable lab for CVE-2026-41242, a protobuf.js dynamic code-generation/code-injection issue leading to RCE. The main exploit is cve_2026_41242.py, a Python script that targets an HTTP service, first probing /health to fingerprint protobufjs and @protobufjs/codegen versions, then POSTing a malicious JSON protobuf descriptor to /api/process. The exploit abuses unsanitized protobuf type names so generated JavaScript becomes syntactically altered; the injected body uses globalThis.process.mainModule.require('child_process').execSync() to run arbitrary commands and throws an error containing RCE_OUTPUT plus stdout, which the Python script parses and displays. It supports single-command mode and an interactive shell loop. Repository structure: README.md gives setup and usage; REPORT.md is a long-form technical writeup explaining root cause, exploitation mechanics, and patch details; vuln-app/server.js is an intentionally vulnerable Express application exposing /health, /api/process, and /api/schema/load; vuln-app/poc_local.js is a local-only proof of concept that demonstrates code injection without network delivery; package.json/package-lock.json pin protobufjs 7.5.4 and @protobufjs/codegen 2.0.4 to preserve the vulnerable behavior. Main exploit capability is remote command execution against applications that deserialize attacker-controlled protobuf schemas at runtime. Secondary capability is target fingerprinting via /health. The exploit is operational rather than merely demonstrative because it includes a concrete payload path, command execution, output recovery, and interactive reuse, but payload customization is still manual rather than framework-driven.Giangdurian · Disclosed Aug 7, 2026 · python · javascript · web · networkOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Protobufjs ProjectProtobufjsapplication
FAQ

Frequently asked questions

Is CVE-2026-41242 exploited in the wild?
As of Nov 5, 2026, Mallory has no reports of CVE-2026-41242 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-41242?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-41242, the earliest disclosed Aug 7, 2026.
Is there a patch for CVE-2026-41242?
Upgrade protobufjs to version 6.11.6, 7.5.5, or 8.0.1, or a later supported version in the applicable release line. Update applications and bundled dependencies that incorporate vulnerable protobufjs releases.
What products are affected by CVE-2026-41242?
Protobufjs Project Protobufjs.
How severe is CVE-2026-41242?
CVE-2026-41242 has a CVSS v4 score of 9.4 (Critical) and an EPSS score of 1.4% (73rd percentile) as of Nov 5, 2026.
Activity feed

Recent activity

11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity7Community discussion across Reddit, Mastodon, and other social sources.