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

CVE-2026-44295: protobuf.js: Code injection in pbjs static output from crafted schema names

May 12, 2026 (updated May 14, 2026)

pbjs static code generation could emit unsafe JavaScript identifiers derived from schema-controlled names. When generating static JavaScript from a crafted schema or JSON descriptor, certain namespace, enum, service, or derived full names could be written into the generated output without sufficient sanitization.

References

  • github.com/advisories/GHSA-6r35-46g8-jcw9
  • github.com/protobufjs/protobuf.js/releases/tag/protobufjs-cli-v1.2.1
  • github.com/protobufjs/protobuf.js/releases/tag/protobufjs-cli-v2.0.2
  • github.com/protobufjs/protobuf.js/security/advisories/GHSA-6r35-46g8-jcw9
  • nvd.nist.gov/vuln/detail/CVE-2026-44295

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.2.1, all versions starting from 2.0.0 before 2.0.2

Fixed versions

  • 1.2.1
  • 2.0.2

Solution

Upgrade to versions 1.2.1, 2.0.2 or above.

Impact 8.7 HIGH

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

Learn more about CVSS

Weakness

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

Source file

npm/protobufjs-cli/CVE-2026-44295.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 23 Jun 2026 12:24:33 +0000.