[Snyk] Security upgrade rimraf from 2.7.1 to 6.1.1#150
[Snyk] Security upgrade rimraf from 2.7.1 to 6.1.1#150MHxGH-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-15309438
|
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.
Breaking rimraf v6 upgrade without updating source code
High Severity
Upgrading rimraf from v2 to v6 is a major breaking change that removes the default export. In v2, require('rimraf') returned a callable function, but in v6 it returns an object with named exports (rimraf, rimrafSync, etc.). Since rimraf is a production dependency and no source code was updated alongside this version bump, any existing require('rimraf') usage will silently get an object instead of a function, causing runtime errors. Additionally, v6 requires Node.js v20+, which may not match the project's supported Node versions.


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-15309438
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:
🦉 Regular Expression Denial of Service (ReDoS)
Note
Medium Risk
Major-version dependency upgrades (
rimraf,glob,minimatch) can change filesystem deletion and globbing behavior, potentially affecting CLI scripts at runtime.Overview
Upgrades
rimrafinpackages/navyfrom2.7.1to6.1.1to address a reported ReDoS vulnerability in the dependency chain.This updates the lockfile to the newer
rimrafdependency graph, including major bumps toglob(7→12) andminimatch(3→10) plus new transitive packages (e.g.,path-scurry,foreground-child,jackspeak).Written by Cursor Bugbot for commit e0c51b7. This will update automatically on new commits. Configure here.