Code Injection in protobuf.js - CVE-2026-41242

 

Code Injection in protobuf.js - CVE-2026-41242

Published: April 16, 2026


Vulnerability identifier: #VU126312
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-41242
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary code.

The vulnerability exists due to code injection in protobuf definition compilation when processing attacker-controlled protobuf definitions during object decoding. A remote user can inject arbitrary code into the "type" fields of protobuf definitions to execute arbitrary code.

Exploitation requires control over the protobuf definition files used by the application.


Affected software

protobuf.js

How to mitigate CVE-2026-41242

Install security update from vendor's website.

protobuf.js - addressed in versions 7.5.5, 8.0.1

External References

Related Security Bulletins