CVE-2026-41242

Summary

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 Software

VendorProductVersion RangeStatus
protobufjsprotobuf.js< 7.5.5affected
protobufjsprotobuf.js>= 8.0.0-experimental, < 8.0.1affected

Weaknesses

  • CWE-94: CWE-94: Improper Control of Generation of Code ('Code Injection')

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: poc
    • Automatable: yes
    • Technical Impact: total

protobufjs: protobufjs: Arbitrary code execution via injected protobuf definition type fields

Additional References

References