Skip to content

chore(deps): update dependency protobufjs-cli to v1.2.1 [security] - #8253

Merged
shivanee-p merged 1 commit into
googleapis:mainfrom
renovate-bot:renovate/npm-protobufjs-cli-vulnerability
Aug 10, 2026
Merged

chore(deps): update dependency protobufjs-cli to v1.2.1 [security]#8253
shivanee-p merged 1 commit into
googleapis:mainfrom
renovate-bot:renovate/npm-protobufjs-cli-vulnerability

Conversation

@renovate-bot

@renovate-bot renovate-bot commented May 12, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
protobufjs-cli 1.2.01.2.1 age confidence

protobuf.js is Vulnerable to OS Command Injection in the CLI

CVE-2026-42290 / GHSA-f84p-cvgm-xgjj

More information

Details

Summary

pbts invoked JSDoc by building a shell command string from input file paths and executing it through child_process.exec. File paths containing shell metacharacters could therefore be interpreted by the shell instead of being passed to JSDoc as plain arguments.

Impact

An attacker who can control file names or paths passed to pbts may be able to execute arbitrary shell commands with the privileges of the process running pbts.

This affects the protobufjs CLI tooling path. The protobufjs runtime APIs for encoding, decoding, parsing, and loading protobuf messages are not directly affected by this issue.

Preconditions
  • The application or user must invoke pbts on file paths influenced by an attacker.
  • The attacker must be able to supply or create a path containing shell-significant characters.
  • The vulnerable pbts version must execute the generated JSDoc command through a shell.
Workarounds

Do not run affected versions of pbts on attacker-controlled file names or paths. If this cannot be avoided, sanitize or rename input files before invoking pbts, or run the CLI in an isolated environment with minimal privileges.

Severity

  • CVSS Score: 7.8 / 10 (High)
  • Vector String: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


protobuf.js: Code injection in pbjs static output from crafted schema names

CVE-2026-44295 / GHSA-6r35-46g8-jcw9

More information

Details

Summary

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.

Impact

An attacker who can provide or influence schemas passed to pbjs may be able to cause generated JavaScript output to contain attacker-controlled code. The injected code would run if the generated file is later executed or imported by the application or build process.

This affects the protobufjs CLI static code generation path. Applications that only use trusted schemas, or that do not execute generated output from untrusted schemas, are not directly affected.

Preconditions
  • The application or build process must run pbjs static code generation on a schema or JSON descriptor influenced by an attacker.
  • The attacker-controlled input must contain crafted schema names that reach generated JavaScript output.
  • The generated JavaScript file must subsequently be executed, imported, or otherwise evaluated.
Workarounds

Do not run affected versions of pbjs static code generation on untrusted schemas or descriptors. If untrusted schemas must be accepted, validate schema names before code generation and run generation in an isolated environment.

Severity

  • CVSS Score: 8.7 / 10 (High)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

protobufjs/protobuf.js (protobufjs-cli)

v1.2.1: protobufjs-cli: v1.2.1

Compare Source

Bug Fixes

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • ""
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate-bot
renovate-bot requested a review from a team as a code owner May 12, 2026 15:26
@dpebot

dpebot commented May 12, 2026

Copy link
Copy Markdown
Collaborator

/gcbrun

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates several dependencies across the project's lock files, including package-lock.json, pnpm-lock.yaml, and yarn.lock. Key changes include moving prettier to production dependencies, upgrading protobufjs-cli to version 1.2.1, and updating various @babel components and the semver package. I have no feedback to provide.

@danieljbruce danieljbruce added the automerge Merge the pull request once unit tests and other checks pass. label May 12, 2026
@gcf-merge-on-green

Copy link
Copy Markdown
Contributor

Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, one of your required reviews was not approved, or there is a do not merge label. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot.

@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label May 13, 2026
@renovate-bot
renovate-bot force-pushed the renovate/npm-protobufjs-cli-vulnerability branch from ae938ad to 774c502 Compare May 13, 2026 21:30
@dpebot

dpebot commented May 13, 2026

Copy link
Copy Markdown
Collaborator

/gcbrun

@renovate-bot
renovate-bot force-pushed the renovate/npm-protobufjs-cli-vulnerability branch from 774c502 to 0afda38 Compare May 13, 2026 22:09
@dpebot

dpebot commented May 13, 2026

Copy link
Copy Markdown
Collaborator

/gcbrun

1 similar comment
@dpebot

dpebot commented May 14, 2026

Copy link
Copy Markdown
Collaborator

/gcbrun

@renovate-bot
renovate-bot force-pushed the renovate/npm-protobufjs-cli-vulnerability branch from 56ae381 to 260b8b4 Compare May 18, 2026 11:16
@dpebot

dpebot commented May 18, 2026

Copy link
Copy Markdown
Collaborator

/gcbrun

@shivanee-p
shivanee-p force-pushed the renovate/npm-protobufjs-cli-vulnerability branch from 260b8b4 to 11e8473 Compare May 19, 2026 20:39
@dpebot

dpebot commented May 19, 2026

Copy link
Copy Markdown
Collaborator

/gcbrun

@renovate-bot
renovate-bot force-pushed the renovate/npm-protobufjs-cli-vulnerability branch from 11e8473 to 9b15ca5 Compare May 19, 2026 21:06
@dpebot

dpebot commented May 19, 2026

Copy link
Copy Markdown
Collaborator

/gcbrun

@shivanee-p
shivanee-p requested a review from pearigee June 22, 2026 21:15
@shivanee-p
shivanee-p force-pushed the renovate/npm-protobufjs-cli-vulnerability branch from 9b15ca5 to 994c1ae Compare August 10, 2026 23:48
@dpebot

dpebot commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

/gcbrun

@shivanee-p
shivanee-p enabled auto-merge (squash) August 10, 2026 23:48
@shivanee-p
shivanee-p merged commit a747a1a into googleapis:main Aug 10, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants