Skip to content

[Snyk] Security upgrade react-scripts from 4.0.0 to 5.0.0 - #113

Open
TiagoSansao wants to merge 1 commit into
masterfrom
snyk-fix-dc684ea69aa29a9d24c6cf36e30dcdfe
Open

[Snyk] Security upgrade react-scripts from 4.0.0 to 5.0.0#113
TiagoSansao wants to merge 1 commit into
masterfrom
snyk-fix-dc684ea69aa29a9d24c6cf36e30dcdfe

Conversation

@TiagoSansao

Copy link
Copy Markdown
Owner

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project.

Snyk changed the following file(s):

  • front-end/package.json
  • front-end/yarn.lock

Note 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 run yarn to update the contents of the ./yarn/cache directory.
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:

Issue Score
medium severity Directory Traversal
SNYK-JS-TAR-15127355
  596  

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 February 3, 2026 10:22
@sonarqubecloud

sonarqubecloud Bot commented Feb 3, 2026

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

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 react-scripts from version 4.0.0 to 5.0.0 to address a medium-severity directory traversal vulnerability (SNYK-JS-TAR-15127355, score 596) in the tar package dependency. This is a major version upgrade that includes significant changes such as the migration from Webpack 4 to Webpack 5.

Changes:

  • Upgraded react-scripts dependency from 4.0.0 to 5.0.0 in package.json
  • Updated yarn.lock with new dependency tree including Webpack 5 and associated build tools

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
front-end/package.json Updated react-scripts version from 4.0.0 to 5.0.0 to fix security vulnerability
front-end/yarn.lock Updated dependency lock file with new dependency tree for react-scripts 5.0.0

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

Comment thread front-end/package.json
"react-dom": "^17.0.1",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.0"
"react-scripts": "5.0.0"

Copilot AI Feb 3, 2026

Copy link

Choose a reason for hiding this comment

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

The upgrade to react-scripts 5.0.0 requires Node.js version 14 or higher. Consider adding an "engines" field to package.json to enforce this requirement and prevent runtime errors for users with older Node.js versions. For example:

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

This will help ensure compatibility and provide clear error messages if someone attempts to use an incompatible Node.js version.

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