RCE in Protobufjs Protobuf.js
CVE-2026-41242
protobufjs compiles protobuf definitions into JavaScript (JS) functions. In versions prior to 8.0.1, 7.5.5, and 6.11.6, attackers can inject arbitrary code in the "type" fields of protobuf definitions, which will then execute during object decoding using that definition. Versions 8.0.1, 7.5.5, and 6.11.6 patch the issue.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.008, 57.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Protobufjs Protobuf.js — versions >= 7.0.0, < 7.5.5, < 6.11.6, >= 8.0.0-experimental, < 8.0.1
- Protobufjs Project — versions 8.0.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- Giangdurian/CVE-2026-41242 (last pushed 2026-08-07)
- 4chech/CVE-2026-41242 (last pushed 2026-04-26): some simple node.js web app with PoC code for CVE-2026-41242
References
- github.com/protobufjs/protobuf.js/security/advisories/GHSA-xq3m-2v4x-88gg (Exploit, Vendor Advisory)
- github.com/protobufjs/protobuf.js/commit/535df444ac060243722ac5d672db205e5c531d… (Patch)
- github.com/protobufjs/protobuf.js/commit/ff7b2afef8754837cc6dc64c864cd111ab4779… (Patch)
- github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v7.5.5 (Product, Release Notes)
- github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v8.0.1 (Product, Release Notes)
- access.redhat.com/errata/RHSA-2026:21338
- access.redhat.com/errata/RHSA-2026:24977
- access.redhat.com/errata/RHSA-2026:26234
- access.redhat.com/security/cve/CVE-2026-41242
- bugzilla.redhat.com/show_bug.cgi
This CVE has public exploit evidence. See the latest CVEs with public exploits.