[Snyk] Security upgrade lerna from 3.0.0-rc.0 to 6.4.1#17
[Snyk] Security upgrade lerna from 3.0.0-rc.0 to 6.4.1#17MHxGH-ServiceAccount wants to merge 1 commit intomasterfrom
Conversation
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-TAR-15307072
|
The upgrade from Lerna v3 to v6 is a major undertaking with significant breaking changes. Lerna's stewardship was transferred to Nrwl (the creators of Nx), and its core functionality has been fundamentally re-architected. Key Breaking Changes:
Recommendation: This is a high-effort migration that will require significant changes to your repository's setup and CI/CD workflows.
Source: Lerna GitHub Releases, Lerna 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.
| }, | ||
| "dependencies": { | ||
| "lerna": "^3.0.0-rc.0" | ||
| "lerna": "^6.4.1" |
There was a problem hiding this comment.
Lerna v6 upgrade breaks release scripts with removed flags
High Severity
Upgrading lerna from v3 to v6 breaks the existing release-canary script, which uses --cd-version and --npm-tag — both removed in Lerna v4+. The --cd-version flag was replaced by a positional argument (e.g., lerna publish prerelease), and --npm-tag was replaced by --dist-tag. Running npm run release-canary after this upgrade will fail. Additionally, lerna.json contains command.bootstrap configuration for the removed lerna bootstrap command.


Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project.
Snyk changed the following file(s):
package.jsonNote for zero-installs users
If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the
.yarn/cache/directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to runyarnto update the contents of the./yarn/cachedirectory.If you are not using zero-install you can ignore this as your flow should likely be unchanged.
Vulnerabilities that will be fixed with an upgrade:
SNYK-JS-TAR-15307072
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:
🦉 Directory Traversal
Note
Medium Risk
Dependency upgrade only, but Lerna major-version changes can break release/publish workflows without additional config or lockfile updates.
Overview
Upgrades the monorepo tooling dependency
lernafrom^3.0.0-rc.0to^6.4.1inpackage.json(security-driven).Written by Cursor Bugbot for commit c390a01. This will update automatically on new commits. Configure here.