Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-41242

Arbitrary code execution in protobufjs
Back to all
CVE

CVE-2026-41242

Arbitrary code execution in protobufjs

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.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.4
-
4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
9.9
-
3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Related Resources

No items found.

References

https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-xq3m-2v4x-88gg, https://nvd.nist.gov/vuln/detail/CVE-2026-41242, https://github.com/protobufjs/protobuf.js/commit/535df444ac060243722ac5d672db205e5c531d75, https://github.com/protobufjs/protobuf.js/commit/ff7b2afef8754837cc6dc64c864cd111ab477956, https://github.com/protobufjs/protobuf.js, https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v7.5.5, https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v8.0.1

Severity

9.9

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
9.9
EPSS Probability
0.00026%
EPSS Percentile
0.07665%
Introduced Version
8.0.0,8.0.0-experimental,6.8.0,0
Fix Available
8.0.1,7.5.5,0.44.0-r0,2.11.0-r22,8.17.10-r18,8.19.14-r3,9.0.8-r20,9.1.10-r13,9.2.7-r6,9.3.3-r5,1.10.0-r20,3.164.0-r6,0.8.4-r5,3.229.0-r5

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading