Skip to main content
VulnerabilityPublished Updated

CVE-2026-41242: protobufjs · Arbitrary Code Execution

Affects protobufjsSource GCVE Database

0
Authoritative record:CVE-2026-41242· Critical 9.4

Not known to be exploited · CVSS 9.4 Critical : upgrade to 8.0.1 as a priority.

Data as of 27 Oct 2026, 00:07 UTC

CVSS 4.0 base score
9.4Critical
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 8.0.1, 7.5.5
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 18 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade protobufjs to 8.0.1; protobufjs to 7.5.5.

Affected software

ProductAffectedFixed in
npmprotobufjsAffected
  • >=8.0.0 <8.0.1
Fixed in
  • 8.0.1
npmprotobufjsAffected
  • <7.5.5
Fixed in
  • 7.5.5

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

## Summary protobufjs could execute generated JavaScript code derived from protobuf schema metadata. When loading a crafted JSON descriptor, schema-controlled type names and type references could reach runtime code generation without sufficient validation. ## Impact An attacker who can provide a malicious protobuf definition or JSON descriptor to an application may be able to execute arbitrary JavaScript in the context of the process using protobufjs. This requires control over the protobuf schema or descriptor being loaded. Applications that only decode messages using trusted, application-defined schemas are not directly affected by this issue. ## Preconditions - The application must allow an attacker to control or influence a protobuf definition or JSON descriptor. - The application must load that definition through protobufjs reflection APIs such as descriptor loading. - The affected generated-code path must be reached, for example by performing an operation on the loaded type. ## Workarounds Do not load protobuf definitions or JSON descriptors from untrusted sources with affected versions. If untrusted schemas must be accepted, validate or restrict them before loading and run schema processing in an isolated environment.

References

Community reviews

Loading reviews…