Skip to content

[Snyk] Security upgrade react-scripts from 1.1.4 to 5.0.0 - #5

Open
snyk-io[bot] wants to merge 1 commit into
masterfrom
snyk-fix-97edba8ad00e67fe3b5e547235d08da4
Open

snyk-io[bot] wants to merge 1 commit into
masterfrom
snyk-fix-97edba8ad00e67fe3b5e547235d08da4

Conversation

@snyk-io

@snyk-io snyk-io Bot commented Aug 4, 2026

Copy link
Copy Markdown

snyk-top-banner

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

Snyk changed the following file(s):

  • demo/package.json
  • demo/package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Allocation of Resources Without Limits or Throttling
SNYK-JS-BRACEEXPANSION-18512280
  828  
medium severity Directory Traversal
SNYK-JS-POSTCSS-18512282
  738  

Breaking Change Risk

Merge Risk: High

Notice: This assessment is enhanced by AI.


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:

🦉 Allocation of Resources Without Limits or Throttling
🦉 Directory Traversal

Copilot AI review requested due to automatic review settings August 4, 2026 21:45
@snyk-io

snyk-io Bot commented Aug 4, 2026

Copy link
Copy Markdown
Author

Merge Risk: High

This is a massive upgrade across four major versions (v1 → v5) and introduces a very high number of significant breaking changes. A direct upgrade is not recommended and will likely fail. This migration will require significant effort, code changes, and configuration updates.

Key Breaking Changes by Version:

  • v2.0.0:

    • Dropped support for Node.js 6.
    • Upgraded core dependencies to Babel 7, Webpack 4, and Jest 23.
    • Polyfills for Internet Explorer 9, 10, and 11 are no longer included by default.
  • v3.0.0:

    • Added full support for React Hooks and integrated TypeScript linting with ESLint.
    • The test command now runs in watch mode by default; CI scripts may need the --watchAll=false flag added.
  • v4.0.0:

    • Introduced Fast Refresh for better hot-reloading.
    • Upgraded to ESLint 7 and enabled the new JSX transform by default.
  • v5.0.0 (Most Critical Changes):

    • Node.js Polyfills Removed: This is the most significant breaking change. Webpack 5 no longer automatically includes polyfills for Node.js core modules. Any dependency relying on modules like buffer, crypto, or stream in the browser will cause the build to fail. This often requires re-configuring the build process or replacing the offending packages.
    • Node.js Version: Dropped support for Node.js 10 and 12; Node 14 or higher is now required.
    • Major Dependency Upgrades: Includes Webpack 5, Jest 27, and ESLint 8.

Source: Create React App GitHub Changelogs.

Recommendation: This upgrade should be treated as a major project. It is highly recommended to perform the migration one major version at a time (1 → 2, 2 → 3, etc.) to isolate and fix breaking changes incrementally. Pay special attention to the Webpack 5 polyfill issue when migrating from v4 to v5, as it is the most common and difficult blocker. Also, note that as of early 2026, the Create React App project is being sunsetted and the React team recommends migrating to modern frameworks like Next.js or Remix.

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

@snyk-io

snyk-io Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Author

⛔ Snyk checks have failed. 9 issues have been found so far.

Status Scan Engine Critical High Medium Low Total (9)
⛔ Open Source Security 0 6 2 0 8 issues
⛔ Licenses 0 0 1 0 1 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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

Note

Copilot could not run the full agentic suite for this review because it was automatically requested on a bot-authored pull request. Request a review from Copilot under Reviewers to retry with the full agentic suite. Improved support for bot-authored pull requests is coming soon.

Updates the demo app’s Create React App tooling by upgrading react-scripts, likely to modernize the build pipeline and dependencies.

Changes:

  • Bump react-scripts from 1.1.4 to 5.0.0.

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

Comment thread demo/package.json
Comment on lines +13 to 14
"react-scripts": "5.0.0",
"react-scripts-ts": "2.13.0",
Comment thread demo/package.json
"react-router": "4.2.0",
"react-router-dom": "^4.2.2",
"react-scripts": "1.1.4",
"react-scripts": "5.0.0",
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.

1 participant