[Snyk] Security upgrade react-scripts from 1.0.10 to 3.0.0#60
[Snyk] Security upgrade react-scripts from 1.0.10 to 3.0.0#60
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
This PR upgrades react-scripts from version 1.0.10 to 3.0.0 to address a directory traversal security vulnerability (SNYK-JS-TAR-15127355) with a severity score of 596. However, this is a major version upgrade that introduces breaking changes requiring additional dependency updates.
Changes:
- Upgrades react-scripts from 1.0.10 to 3.0.0 to fix a security vulnerability in the tar dependency
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "react": "^15.6.1", | ||
| "react-dom": "^15.6.1", |
There was a problem hiding this comment.
Upgrading react-scripts to 3.0.0 without upgrading React and React DOM will cause the project to fail. React-scripts 3.0.0 requires React version 16.8.0 or higher to support Hooks and other features, but this package.json still specifies React 15.6.1.
To fix this security vulnerability properly, the following dependencies must also be upgraded:
- "react": "^16.8.0" or higher (currently "^15.6.1")
- "react-dom": "^16.8.0" or higher (currently "^15.6.1")
Additionally, upgrading from React 15 to React 16 may require code changes, particularly around deprecated lifecycle methods and PropTypes, which should be tested before merging.
| "react": "^15.6.1", | |
| "react-dom": "^15.6.1", | |
| "react": "^16.8.0", | |
| "react-dom": "^16.8.0", |
Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):
package.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