Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. protobufjs
  4. ›
  5. CVE-2026-41242

CVE-2026-41242: protobufjs has an arbitrary code execution issue

April 16, 2026 (updated November 4, 2026)

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.

References

  • access.redhat.com/errata/RHSA-2026:21338
  • access.redhat.com/errata/RHSA-2026:24977
  • access.redhat.com/errata/RHSA-2026:26234
  • access.redhat.com/errata/RHSA-2026:37275
  • access.redhat.com/errata/RHSA-2026:62260
  • access.redhat.com/security/cve/CVE-2026-41242
  • bugzilla.redhat.com/show_bug.cgi?id=2459442
  • github.com/advisories/GHSA-xq3m-2v4x-88gg
  • github.com/protobufjs/protobuf.js/commit/086916b4a52c9f73ce88956edbb38fc902e54bbf
  • github.com/protobufjs/protobuf.js/commit/535df444ac060243722ac5d672db205e5c531d75
  • github.com/protobufjs/protobuf.js/commit/ff7b2afef8754837cc6dc64c864cd111ab477956
  • github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v7.5.5
  • github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v8.0.1
  • github.com/protobufjs/protobuf.js/security/advisories/GHSA-xq3m-2v4x-88gg
  • github.com/protobufjs/protobuf.js/tree/v6.11.6
  • nvd.nist.gov/vuln/detail/CVE-2026-41242
  • security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41242.json

Code Behaviors & Features

Detect and mitigate CVE-2026-41242 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 6.11.6, all versions starting from 7.0.0 before 7.5.5, all versions starting from 8.0.0 before 8.0.1

Fixed versions

  • 6.11.6
  • 7.5.5
  • 8.0.1

Solution

Upgrade to versions 6.11.6, 7.5.5, 8.0.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

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

Source file

npm/protobufjs/CVE-2026-41242.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:59 +0000.