Code Injection in protobuf.js - CVE-2026-44293
Published: May 12, 2026
protobuf.js
Detailed vulnerability description
The vulnerability allows a remote user to execute arbitrary code.
The vulnerability exists due to improper control of code generation in generated toObject code when processing an attacker-controlled protobuf descriptor with a non-string default value for a bytes field and converting a message with defaults enabled. A remote user can provide a crafted descriptor to execute arbitrary code.
Exploitation requires the application to load an attacker-controlled schema or descriptor and call toObject with defaults enabled for the affected type.