[Snyk] Security upgrade react-scripts from 4.0.0 to 5.0.0 - #111
[Snyk] Security upgrade react-scripts from 4.0.0 to 5.0.0#111TiagoSansao wants to merge 1 commit into
Conversation
…lities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-ELLIPTIC-14908844 - https://snyk.io/vuln/SNYK-JS-TAR-6476909 - https://snyk.io/vuln/SNYK-JS-TAR-1579147 - https://snyk.io/vuln/SNYK-JS-TAR-1579152 - https://snyk.io/vuln/SNYK-JS-TAR-1579155 - https://snyk.io/vuln/SNYK-JS-TAR-1536528 - https://snyk.io/vuln/SNYK-JS-TAR-1536531 - https://snyk.io/vuln/SNYK-JS-TAR-1536758
|
There was a problem hiding this comment.
Pull request overview
This PR upgrades react-scripts from version 4.0.0 to 5.0.0 to address 8 security vulnerabilities, including high-severity arbitrary file write issues in the tar package and medium-severity cryptographic issues in the elliptic package.
Changes:
- Upgrade react-scripts dependency from 4.0.0 to 5.0.0 in package.json
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "react": "^17.0.1", | ||
| "react-dom": "^17.0.1", |
There was a problem hiding this comment.
Upgrading react-scripts to 5.0.0 requires React 18 as a peer dependency, but this project is still using React 17.0.1. This mismatch will cause peer dependency warnings or errors during installation. To complete this security upgrade, you should also upgrade React and React-DOM to version 18. Update the following dependencies:
- "react": "^18.0.0"
- "react-dom": "^18.0.0"
Note that React 18 introduces some breaking changes, particularly around ReactDOM.render (now ReactDOM.createRoot). You'll need to update front-end/src/index.js accordingly.
| "react": "^17.0.1", | |
| "react-dom": "^17.0.1", | |
| "react": "^18.0.0", | |
| "react-dom": "^18.0.0", |



Snyk has created this PR to fix 8 vulnerabilities in the yarn dependencies of this project.
Snyk changed the following file(s):
front-end/package.jsonfront-end/yarn.lockNote 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-ELLIPTIC-14908844
SNYK-JS-TAR-6476909
SNYK-JS-TAR-1579147
SNYK-JS-TAR-1579152
SNYK-JS-TAR-1579155
SNYK-JS-TAR-1536528
SNYK-JS-TAR-1536531
SNYK-JS-TAR-1536758
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:
🦉 Arbitrary File Overwrite
🦉 Regular Expression Denial of Service (ReDoS)