gax-nodejs icon indicating copy to clipboard operation
gax-nodejs copied to clipboard

CVE-2023-36665 vulnerability is still present in protobufjs 7.2.4

Open aramikuto opened this issue 10 months ago • 3 comments

Protobufjs was updated to version 7.2.4 in https://github.com/googleapis/gax-nodejs/issues/1466 to address the CVE-2023-36665 vulnerability. However, it has been discovered that version 7.2.4 remains vulnerable. The latest version of firebase-tools (v13.7.2 at the monent) still relies on version ^3.6.1 of this package as a peer dependency.

Is it possible to release a patched 3.x version with protobufjs 7.2.5, where the vulnerability has been resolved?

├─ firebase-tools@npm:13.7.2 (via npm:^13.7.2)
│  └─ @google-cloud/pubsub@npm:3.7.5 (via npm:^3.0.1)
│     └─ google-gax@npm:3.6.1 (via npm:^3.6.1)
│        ├─ @grpc/grpc-js@npm:1.8.21 (via npm:~1.8.0)
│        │  └─ @grpc/proto-loader@npm:0.7.10 (via npm:^0.7.0)
│        ├─ @grpc/proto-loader@npm:0.7.10 (via npm:^0.7.0)
│        ├─ proto3-json-serializer@npm:1.1.1 (via npm:^1.0.0)
│        │  └─ protobufjs@npm:7.2.6 (via npm:^7.0.0)
│        └─ protobufjs@npm:7.2.4 (via npm:7.2.4)

aramikuto avatar Apr 12 '24 10:04 aramikuto

Same issue for @google-cloud/logging https://github.com/googleapis/nodejs-logging/issues/1496

scaryguy avatar Apr 15 '24 23:04 scaryguy

This causes a critical vulnerability in @google-cloud/monitoring

@google-cloud/[email protected]
  └─┬ [email protected]
    ├─┬ @grpc/[email protected]
    │ └── [email protected]

AlvesJorge avatar Apr 22 '24 09:04 AlvesJorge

I'm experiencing this issue for @google-cloud/secret-manager and @google-cloud/datastore.

kvargha avatar Apr 23 '24 22:04 kvargha

I think this is fixed in #1596

leahecole avatar May 21 '24 19:05 leahecole

Hi @leahecole The requirement @grpc/proto-loader itself requires [email protected] which is still affected by this critical vulnerability. You specify "@grpc/proto-loader": "^0.7.0" and this version still comes with the protobufjs vulnerability. Latest published version of @grpc/proto-loader is 0.7.13, which already has this fixed. Please re-open this issue 🙏

AlvesJorge avatar Jun 03 '24 15:06 AlvesJorge

Opened a PR to fix this, awaiting CODEOWNERS review

AlvesJorge avatar Jun 03 '24 16:06 AlvesJorge