Back to list

protobuf.js: Code injection through bytes field defaults in generated toObject code — CVE-2026-44293

GitHub · GitHub · CVE-2026-44293

ID
CVE-2026-44293
Date
Activity
Source
GitHub
Vendor
GitHub
Threat
high
CVSS
7.7

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…

Product

npm: protobufjs

What to do

General, cautious steps (verify details in the official source):

  • Prioritize patching or mitigation immediately (treat as actively risky).
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Related advisories