CVE-2026-41242 — Vulnerability in protobufjs — CVE Details
protobufjs has an arbitrary code execution issue
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.82%). Schedule for your next planned update.
Does your project use an affected protobufjs version?
Paste your package-lock.json to check it for CVE-2026-41242 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
protobufjs could execute generated JavaScript code derived from protobuf schema metadata. When loading a crafted JSON descriptor, schema-controlled type names and type references could reach runtime code generation without sufficient validation.
Impact
An attacker who can provide a malicious protobuf definition or JSON descriptor to an application may be able to execute arbitrary JavaScript in the context of the process using protobufjs.
This requires control over the protobuf schema or descriptor being loaded. Applications that only decode messages using trusted, application-defined schemas are not directly affected by this issue.
Preconditions
- The application must allow an attacker to control or influence a protobuf definition or JSON descriptor.
- The application must load that definition through protobufjs reflection APIs such as descriptor loading.
- The affected generated-code path must be reached, for example by performing an operation on the loaded type.
Workarounds
Do not load protobuf definitions or JSON descriptors from untrusted sources with affected versions. If untrusted schemas must be accepted, validate or restrict them before loading and run schema processing in an isolated environment.
Advisory Timeline
- First published April 16, 2026 (224 days ago).
- Last revised November 4, 2026 — 202 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install protobufjs@8.0.1
npm install protobufjs@6.11.6
npm install protobufjs@7.5.5
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: npm (1).
| Package | Fixed In |
|---|---|
| protobufjs npm · Affected: All versions | 8.0.1 |
| protobufjs npm · Affected: All versions | 6.11.6 |
| protobufjs npm · Affected: All versions | 7.5.5 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-xq3m-2v4x-88ggWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-41242ADVISORY
- https://github.com/protobufjs/protobuf.js/commit/ff7b2afef8754837cc6dc64c864cd111ab477956WEB
- https://github.com/protobufjs/protobuf.js/commit/535df444ac060243722ac5d672db205e5c531d75WEB
- https://github.com/protobufjs/protobuf.js/commit/086916b4a52c9f73ce88956edbb38fc902e54bbfWEB
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41242.jsonWEB
- https://github.com/protobufjs/protobuf.js/tree/v6.11.6WEB
- https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v8.0.1WEB
- https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v7.5.5WEB
- https://github.com/protobufjs/protobuf.jsPACKAGE
- https://bugzilla.redhat.com/show_bug.cgi?id=2459442WEB
- https://access.redhat.com/security/cve/CVE-2026-41242WEB
- https://access.redhat.com/errata/RHSA-2026:62260WEB
- https://access.redhat.com/errata/RHSA-2026:37275WEB
- https://access.redhat.com/errata/RHSA-2026:26234WEB
- https://access.redhat.com/errata/RHSA-2026:24977WEB
- https://access.redhat.com/errata/RHSA-2026:21338WEB
Frequently Asked Questions
- What is CVE-2026-41242?
- protobufjs has an arbitrary code execution issue. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2026-41242?
- CVE-2026-41242 affects protobufjs. It has a 1.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-41242 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top quartile of EPSS-scored vulnerabilities — 79.2% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-76807CRITICAL
Todoist MCP Server: Browser DNS rebinding lets websites write and delete Todoist data through local MCP server
- CVE-2023-36665CRITICAL
protobufjs Prototype Pollution vulnerability
- CVE-2026-114516CRITICAL
Etherpad: Pre-auth arbitrary file read
- CVE-2026-44293HIGH
protobuf.js: Code injection through bytes field defaults in generated toObject code