Skip to main content

CVE-2026-41242 — Vulnerability in protobufjs — CVE Details

CRITICAL

protobufjs has an arbitrary code execution issue

Published April 16, 2026Updated November 4, 2026Source: OSV

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.

Check my package-lock.json

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
Update protobufjs to 8.0.1 or later
npm install protobufjs@8.0.1
npm
Update protobufjs to 6.11.6 or later
npm install protobufjs@6.11.6
npm
Update protobufjs to 7.5.5 or later
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).

PackageFixed In
protobufjs npm · Affected: All versions8.0.1
protobufjs npm · Affected: All versions6.11.6
protobufjs npm · Affected: All versions7.5.5

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
1.82%
EPSS percentile: 79.2

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

GHSA-xq3m-2v4x-88gg

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my package-lock.json