Skip to content

[Snyk] Security upgrade react-scripts from 4.0.3 to 5.0.0#5252

Open
bogarin wants to merge 1 commit intomasterfrom
snyk-fix-b5e453d53debb3edb6cab60494c57a5c
Open

[Snyk] Security upgrade react-scripts from 4.0.3 to 5.0.0#5252
bogarin wants to merge 1 commit intomasterfrom
snyk-fix-b5e453d53debb3edb6cab60494c57a5c

Conversation

@bogarin
Copy link
Copy Markdown
Owner

@bogarin bogarin commented Jan 31, 2026

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):

  • spring-boot-modules/spring-boot-react/frontend/package.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
medium severity Directory Traversal
SNYK-JS-TAR-15032660
  693  
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 January 31, 2026 00:43
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

Upgrades the Create React App build tooling to remediate Snyk-reported vulnerabilities (tar directory traversal) pulled in via the frontend dependency tree.

Changes:

  • Bump react-scripts from 4.0.3 to 5.0.0 in the React frontend.

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

"react-dom": "^17.0.2",
"react-router-dom": "^5.3.0",
"react-scripts": "4.0.3",
"react-scripts": "5.0.0",
Copy link

Copilot AI Jan 31, 2026

Choose a reason for hiding this comment

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

react-scripts 5.x requires Node 14+; this package.json doesn’t declare an engines constraint, so local dev/CI could accidentally run with an unsupported Node version and fail at install/build. Consider adding an "engines" entry (and/or updating your build tooling docs) to enforce the required Node range.

Copilot uses AI. Check for mistakes.
"react-dom": "^17.0.2",
"react-router-dom": "^5.3.0",
"react-scripts": "4.0.3",
"react-scripts": "5.0.0",
Copy link

Copilot AI Jan 31, 2026

Choose a reason for hiding this comment

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

This repo doesn’t appear to commit a lockfile (no yarn.lock/package-lock.json). With a security-driven upgrade like this, that means dependency resolution is non-deterministic and the fixed transitive versions aren’t pinned. Consider committing the appropriate lockfile and using a frozen/ci install mode (e.g., yarn --frozen-lockfile or npm ci) to make the remediation reproducible.

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