[Snyk] Security upgrade bcrypt from 5.0.1 to 6.0.0#35
Conversation
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-TAR-15127355
There was a problem hiding this comment.
Pull request overview
Upgrades bcrypt to address a Snyk-reported directory traversal vulnerability (via removal of vulnerable transitive tar usage).
Changes:
- Bump
bcryptfrom^5.0.1to^6.0.0inpackage.json. - Regenerate
package-lock.jsonto reflect the newbcryptversion and updated transitive dependency graph (notably replacingnode-pre-gyp/tarchain withnode-gyp-build).
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| package.json | Updates direct dependency bcrypt to ^6.0.0 for vulnerability remediation. |
| package-lock.json | Updates the resolved dependency tree for bcrypt@6.0.0, removing prior transitive packages and recording new engine/dependency constraints. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "license": "ISC", | ||
| "dependencies": { | ||
| "bcrypt": "^5.0.1", | ||
| "bcrypt": "^6.0.0", |
There was a problem hiding this comment.
bcrypt 6.x requires Node.js >= 18 (see its engines field in the lockfile). Since this is a breaking runtime/install requirement and package.json currently doesn’t declare an engine constraint, consider adding an explicit "engines": {"node": ">=18"} (and aligning CI/deployment) or pinning bcrypt to a compatible major if you must support older Node versions.
Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):
package.jsonpackage-lock.jsonVulnerabilities that will be fixed with an upgrade:
SNYK-JS-TAR-15127355
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