NetSight
critical9.8

CVE-2026-41242

protobufjs compiles protobuf definitions into JavaScript (JS) functions.

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
npmprotobufjs>= 8.0.0, < 8.0.18.0.1

Affected products

VendorProductAffected versions
Protobufjs ProjectProtobufjs
before 7.5.5
Version 8.0.0

Weakness classification

References