bruno icon indicating copy to clipboard operation
bruno copied to clipboard

VM2 level 10 vulnerabilities blocking us from using bruno CLI in our CI.

Open PramodKumarYadav opened this issue 1 year ago • 10 comments

I have checked the following:

  • [x] I have searched existing issues and found nothing related to my issue.

This bug is:

  • [x] making Bruno unusable for me
  • [ ] slowing me down but I'm able to continue working
  • [ ] annoying
  • [ ] this feature was working in a previous version but is broken in the current release.

Bruno version

2.12.0 (of bruno CLI)

Operating System

macOS Sequoia 15.4.1

Describe the bug

Problem statement:

We want to be able to use bruno CLI in our CI but couldn't because of open level 10 critical issues that are blocked in Nexus.

Image

Earlier the critical library was crypto-js. This got fixed in the latest version. Now, nexusIQ reported @usebruno/vm2 : 3.9.19 to be a level 10 threat severity.

This issue was already reported here: https://github.com/usebruno/bruno/issues/922 The same two reported critical packages still exist. i.e. vm2 Sandbox Escape vulnerability - https://github.com/advisories/GHSA-cchq-frgv-rjh5 vm2 Sandbox Escape vulnerability - https://github.com/advisories/GHSA-g644-9gfx-q4q4

Seems bruno team picked this issue last year but dropped it after a while: https://github.com/usebruno/bruno/issues/263

Since we are in a banking setup and download all our dependencies via nexus, it makes it impossible to use Bruno CLI.

Is this something that can be fixed on priority so that we can be unblocked and start using the Bruno CLI in our CI?

P.S: When I download latest CLI on my personal computer, and run npm audit report, I also get 4 other high level vulnerabilities.

pramodyadav@pramods-mbp bruno-cli-test % npm audit report
# npm audit report

lodash.set  *
Severity: high
Prototype Pollution in lodash - [https://github.com/advisories/GHSA-p6mc-m468-83gw]
fix available via `npm audit fix --force`
Will install @usebruno/[email protected], which is a breaking change
node_modules/lodash.set
  grpc-reflection-js  *
  Depends on vulnerable versions of lodash.set
  node_modules/grpc-reflection-js
    @usebruno/requests  >=0.8.0
    Depends on vulnerable versions of grpc-reflection-js
    node_modules/@usebruno/requests
      @usebruno/cli  >=2.10.0
      Depends on vulnerable versions of @usebruno/requests
      node_modules/@usebruno/cli

4 high severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force
pramodyadav@pramods-mbp bruno-cli-test %

.bru file to reproduce the bug

No response

Screenshots/Live demo link

Image

PramodKumarYadav avatar Sep 26 '25 14:09 PramodKumarYadav

@PramodKumarYadav

vm2 usage in Bruno is planned to be removed when we do a v3 release. We plan to use Node VM which is provide by NodeJS itself.

Rough ETA for v3 release is around Dec 2025.

That said, we don’t consider vm2 itself to be a vulnerability. The goal is to provide access to the Node runtime and APIs by design. For users who prefer not to allow this, we already provide Safe Mode

Security scanners flag vm2 as a vulnerability because they assume it’s being used in a server runtime where sandbox escapes are a concern. In Bruno’s case, however, access to Node APIs is intentional and aligned with the product’s design.

helloanoop avatar Sep 29 '25 07:09 helloanoop

Hi @helloanoop - just to clarify on the other issue documented in the original issue by @PramodKumarYadav regarding the security vulnerability in grpc-reflection-js / lodash.set: Will the change you mentioned in v3 also address those? If not, should I raise a separate issue or email [email protected] about that? We're seeing a similar issue which is causing security alerts in our org so would like to ensure this will be addressed. Thanks!

finbargp avatar Nov 04 '25 10:11 finbargp

@finbargp, regarding the lodash.get issue, we’re working on a feature to replace the grpc-reflection-js package with grpc-js-reflection-client, which doesn’t use lodash.get and doesn't have the mentioned security vulnerability. The PR is currently a work in progress: #5653.

Pragadesh44-Bruno avatar Nov 04 '25 11:11 Pragadesh44-Bruno

Thanks for the quick response @Pragadesh44-Bruno - that's great news!

finbargp avatar Nov 04 '25 11:11 finbargp

#5653 is merged and will be part of the next release. @finbargp cc: @Pragadesh44-Bruno

sanish-bruno avatar Nov 17 '25 08:11 sanish-bruno

vm2 usage in Bruno is planned to be removed when we do a v3 release. We plan to use Node VM which is provide by NodeJS itself.

Rough ETA for v3 release is around Dec 2025.

@helloanoop Do you still plan to remove vm2 in the upcoming major v3 release in Dec 2025?

pacroy avatar Dec 03 '25 06:12 pacroy

@pacroy Yes, it’ll be removed.

helloanoop avatar Dec 03 '25 09:12 helloanoop

@helloanoop Could you provide the current status and timeline for removing vm2 in the v3 release?

pacroy avatar Dec 18 '25 03:12 pacroy

@pacroy We have removed it as a part of upcoming v3 release - https://github.com/usebruno/bruno/discussions/6466

Its currently in preview. Stable rollout is being planned on Jan 5th 2026

helloanoop avatar Dec 24 '25 00:12 helloanoop

@helloanoop I tested downloading the latest bruno CLI and this time it downloaded without any issues or warnings in Nexus 🎉. I ran the tests from CLI and they were successful. I believe this issue can now be closed. Thanks to you and your team for the prompt support 🙌 :).

Image

PramodKumarYadav avatar Jan 08 '26 20:01 PramodKumarYadav