Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.7%top 49%

CVE-2026-41242: CWE-94: Improper Control of Generation of Code ('Code Injection') in protobufjs protobuf.js

0
Critical
VulnerabilityCVE-2026-41242cvecve-2026-41242cwe-94
Published: 04/18/2026 (04/18/2026, 16:18:10 UTC)
Source: CVE Database V5
Vendor/Project: protobufjs
Product: protobuf.js

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.

CVSS v4.0

Score 9.4critical

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
High
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

Affected software

protobufjs
pkg:npm/protobufjs
Affected versions
<7.5.5

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/18/2026, 14:46:14 UTC

Technical Analysis

CVE-2026-41242 affects protobuf.js, a library that compiles protobuf definitions into JavaScript functions. In versions before 7.5.5, an attacker can inject arbitrary code into the "type" fields of protobuf definitions. This injected code executes during the decoding process of objects using those definitions, resulting in a critical code injection vulnerability (CWE-94). The vulnerability has a CVSS 4.0 score of 9.4, indicating critical severity. Versions 7.5.5 and 8.0.1 include patches that fix this issue. Red Hat advisories reference this CVE and provide additional context but do not explicitly state new patches beyond the version fixes.

Potential Impact

Successful exploitation allows an attacker to execute arbitrary code during the decoding of protobuf objects, potentially leading to full compromise of the application using protobuf.js. The vulnerability is critical due to the high impact on confidentiality, integrity, and availability, as reflected by the CVSS score of 9.4.

Mitigation Recommendations

Upgrade protobuf.js to version 7.5.5 or later, as these versions include patches that fix the code injection vulnerability. Since the vendor advisory and CVE description confirm the fix in 7.5.5 and 8.0.1, applying these updates is the recommended remediation. No additional mitigations or temporary fixes are documented in the vendor advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-18T03:47:03.135Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-41242","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:21338","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:26234","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:24977","vendor":"Red Hat"}]

Threat ID: 69e46a7a19fe3cd2cde33d17

Added to database: 04/19/2026, 05:39:06 UTC

Last enriched: 07/18/2026, 14:46:14 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 618

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses