CVE-2026-41242
Low
Low
Medium
High
Critical
CVSS Score
Vulnerability Description
protobufjs compiles protobuf definitions into JavaScript (JS) functions. In versions prior to 8.0.1 and 7.5.5, 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 and 7.5.5 patch the issue.
References & Resources
-
https://github.com/protobufjs/protobuf.js/commit/535df444ac060243722ac5d672db205e5c531d75security-advisories@github.com
-
https://github.com/protobufjs/protobuf.js/commit/ff7b2afef8754837cc6dc64c864cd111ab477956security-advisories@github.com
-
https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v7.5.5security-advisories@github.com
-
https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v8.0.1security-advisories@github.com
-
https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-xq3m-2v4x-88ggsecurity-advisories@github.com
Severity Details
out of 10.0
Low
Weakness Type (CWE)
CWE-94
Top 25 #7
Improper Control of Generation of Code ('Code Injection')
- Description
- The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
- Exploit Likelihood
- Medium
- Typical Severity
- High
- OWASP Top 10
- A03:2021-Injection
- Abstraction Level
- Base
Key Information
- Published Date
- April 18, 2026
