[Snyk] Security upgrade rimraf from 2.7.1 to 6.1.1#152
[Snyk] Security upgrade rimraf from 2.7.1 to 6.1.1#152MHxGH-ServiceAccount wants to merge 1 commit intomasterfrom
Conversation
…reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-MINIMATCH-15353389
|
This is a major version upgrade from v2 to v6, introducing several significant breaking changes that require code and environment updates. Key Breaking Changes:
Recommendation: Source: Package documentation
|
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
| "ramda": "^0.28.0", | ||
| "resolve": "^1.20.0", | ||
| "rimraf": "^2.7.1", | ||
| "rimraf": "^6.1.1", |
There was a problem hiding this comment.
rimraf v6 removes default export, breaking existing usage
High Severity
Upgrading rimraf to v6 breaks the existing call sites. require('rimraf') no longer returns a function — it returns an object with named exports. Both state.js and clean-compose-files.js use bluebird.promisify(require('rimraf')), which will fail at runtime because promisify expects a callback-style function but receives an object. The correct v6 usage is const { rimraf } = require('rimraf'), and since rimraf v6 already returns Promises, bluebird.promisify is no longer needed.


Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):
packages/navy/package.jsonpackages/navy/package-lock.jsonVulnerabilities that will be fixed with an upgrade:
SNYK-JS-MINIMATCH-15353389
Breaking Change Risk
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.
Note
Medium Risk
Medium risk because it upgrades
rimrafacross a major version jump, which can subtly change file deletion semantics and glob behavior in CLI cleanup/state deletion paths.Overview
Upgrades
rimrafinpackages/navyfrom^2.7.1to^6.1.1to remediate a vulnerability in the dependency chain (via newerglob/minimatch).The lockfile is updated accordingly, replacing older transitive packages (e.g.,
glob@7,minimatch@3,brace-expansion@1) with newer versions and adding new supporting deps (e.g.,foreground-child,path-scurry,lru-cache,cross-spawn).Written by Cursor Bugbot for commit 81b7c60. This will update automatically on new commits. Configure here.