Skip to content

[Snyk] Security upgrade bcrypt from 5.1.1 to 6.0.0#10

Open
trongthanht3 wants to merge 1 commit into
mainfrom
snyk-fix-625f3b023cace7e5f76e28495816bdc1
Open

[Snyk] Security upgrade bcrypt from 5.1.1 to 6.0.0#10
trongthanht3 wants to merge 1 commit into
mainfrom
snyk-fix-625f3b023cace7e5f76e28495816bdc1

Conversation

@trongthanht3
Copy link
Copy Markdown
Member

snyk-top-banner

Snyk has created this PR to fix 2 vulnerabilities in the pnpm dependencies of this project.

Snyk changed the following file(s):

  • package.json
  • pnpm-lock.yaml

Vulnerabilities that will be fixed with an upgrade:

Issue Score
medium severity Improper Handling of Unicode Encoding
SNYK-JS-TAR-15038581
  713  
medium severity Directory Traversal
SNYK-JS-TAR-15032660
  693  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

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

Copilot AI review requested due to automatic review settings January 26, 2026 19:24
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades bcrypt from version 5.1.1 to 6.0.0 to fix two medium-severity security vulnerabilities (SNYK-JS-TAR-15038581 and SNYK-JS-TAR-15032660) in the tar package, which was a transitive dependency of the older bcrypt version.

Changes:

  • Upgrades bcrypt from ^5.1.1 to ^6.0.0 in package.json
  • Updates pnpm-lock.yaml to reflect the new bcrypt version and its dependencies
  • Removes tar and related vulnerable dependencies by switching from @mapbox/node-pre-gyp to node-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 bcrypt dependency specification from ^5.1.1 to ^6.0.0
pnpm-lock.yaml Updates lock file with new bcrypt version (6.0.0), removes vulnerable tar dependency and its transitive dependencies (@mapbox/node-pre-gyp, npmlog, gauge, etc.), and adds updated node-addon-api (8.5.0) and node-gyp-build (4.8.4)
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
"@vercel/postgres": "^0.8.0",
"autoprefixer": "10.4.19",
"bcrypt": "^5.1.1",
"bcrypt": "^6.0.0",
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bcrypt upgrade from 5.1.1 to 6.0.0 introduces a breaking change: the minimum Node.js version requirement has increased from ">= 10.0.0" to ">= 18". Consider adding an "engines" field to package.json to enforce this requirement and prevent deployment issues in environments running older Node versions. For example:

"engines": {
"node": ">=18.0.0"
}

This is particularly important since the PR metadata indicates this is a breaking change.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants