CVE-2026-44293 — Vulnerability in protobufjs — CVE Details
protobuf.js: Code injection through bytes field defaults in generated toObject code
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.73%). 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-44293 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 generated JavaScript for toObject conversion could include an unsafe expression derived from a schema-controlled bytes field default value. A crafted descriptor with a non-string default value for a bytes field could cause attacker-controlled code to be emitted into the generated conversion function.
Impact
An attacker who can provide or influence a protobuf descriptor may be able to execute arbitrary JavaScript in the context of the process using protobufjs.
This requires the application to load an attacker-controlled schema or descriptor and then convert a message of the affected type with defaults enabled. Applications that only use trusted, application-defined schemas are not directly affected by this issue.
Preconditions
- The application must allow an attacker to control or influence a protobuf JSON descriptor or equivalent reflected schema.
- The descriptor must define a
bytesfield with an attacker-controlled default value. - The application must call
toObjectwith defaults enabled for the affected type.
Workarounds
Do not load protobuf schemas or JSON descriptors from untrusted sources with affected versions. If untrusted schemas must be accepted, validate or restrict field options before loading them and run schema processing in an isolated environment.
Advisory Timeline
- First published May 12, 2026 (198 days ago).
- Last revised September 10, 2026 — 121 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install protobufjs@7.5.6
npm install protobufjs@8.0.2
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: npm (1).
| Package | Fixed In |
|---|---|
| protobufjs npm · Affected: All versions | 7.5.6 |
| protobufjs npm · Affected: All versions | 8.0.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.4 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
References
Frequently Asked Questions
- What is CVE-2026-44293?
- protobuf.js: Code injection through bytes field defaults in generated toObject code. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.4/10).
- How do I check if my project is affected by CVE-2026-44293?
- CVE-2026-44293 affects protobufjs. It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-44293 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 50.3% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2023-36665CRITICAL
protobufjs Prototype Pollution vulnerability
- CVE-2026-41242CRITICAL
protobufjs has an arbitrary code execution issue
- CVE-2026-83816HIGH
CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE
- CVE-2026-83817HIGH
CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution