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.0%top 92%

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: Sat Apr 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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/27/2026, 00:22:04 UTC

Technical Analysis

protobufjs compiles protobuf definitions into JavaScript functions. In affected versions (<7.5.5 and >=8.0.0-experimental but <8.0.1), attackers can inject arbitrary code into the "type" fields of protobuf definitions. This injected code executes during the decoding process of objects using these definitions, constituting a code injection vulnerability (CWE-94). The vulnerability is critical with a CVSS 4.0 score of 9.4. Fixed versions 7.5.5 and 8.0.1 mitigate this issue.

Potential Impact

Successful exploitation allows an attacker to execute arbitrary code during protobuf object decoding, which can lead to full compromise of the application environment running protobuf.js. The vulnerability is network exploitable with low attack complexity and no user interaction required, increasing risk. The high CVSS vector metrics indicate high impact on confidentiality, integrity, and availability.

Mitigation Recommendations

Fixed versions 7.5.5 and 8.0.1 of protobuf.js address this vulnerability. Users should upgrade to these or later versions to remediate the issue. Patch status is not explicitly confirmed beyond version information; therefore, verify the vendor's official advisory or repository for the latest remediation guidance. No additional mitigations are specified.

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

Threat ID: 69e46a7a19fe3cd2cde33d17

Added to database: 4/19/2026, 5:39:06 AM

Last enriched: 4/27/2026, 12:22:04 AM

Last updated: 6/3/2026, 8:27:50 AM

Views: 473

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