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

CVE-2026-54271: protobufjs-cli: Code injection in pbjs static output from crafted JSON descriptor names

June 15, 2026

A previous fix for unsafe name handling in pbjs static / static-module code generation was incomplete. Affected versions of protobufjs-cli could still emit unsafe JavaScript references when generating static output from crafted JSON descriptor input. The common case of parsing schemas from .proto files is not affected.

This is a bypass of GHSA-6r35-46g8-jcw9 / CVE-2026-44295.

References

  • github.com/advisories/GHSA-pr59-h9ph-3fr8
  • github.com/protobufjs/protobuf.js/security/advisories/GHSA-pr59-h9ph-3fr8
  • nvd.nist.gov/vuln/detail/CVE-2026-54271

Code Behaviors & Features

Detect and mitigate CVE-2026-54271 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.3.2, all versions starting from 2.0.0 before 2.5.0

Fixed versions

  • 1.3.2
  • 2.5.0

Solution

Upgrade to versions 1.3.2, 2.5.0 or above.

Impact 8.2 HIGH

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

Learn more about CVSS

Weakness

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

Source file

npm/protobufjs-cli/CVE-2026-54271.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:13 +0000.