CVE-2026-44293
protobufjs: Code injection through bytes field defaults in generated toObject code
- State
- Published
- Severity
- 7.7 High
- Published
- May 13, 2026
- Updated
- Sep 9, 2026
- Reserved
- May 5, 2026
Description
protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 7.5.6 and 8.0.2, 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. This vulnerability is fixed in 7.5.6 and 8.0.2.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 7.7 High | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | GitHub_M |
| 3.1 | 7.1 High | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:H | redhat-SADP |
Weaknesses
- CWE-94 Improper Control of Generation of Code ('Code Injection')
Affected Products
| Product | Versions |
|---|---|
protobuf.jsprotobufjs |
|
References
- https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-66ff-xgx4-vchm
- https://access.redhat.com/security/cve/CVE-2026-44293vdb-entry
- RHBZ#2477104issue-tracking
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-44293.json
- https://access.redhat.com/errata/RHSA-2026:34160vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:37385vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34374vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:26234vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:60520vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:57487vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:54555vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:37628vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:37186vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:29795vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:26090vendor-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.