Skip to content

[Snyk] Security upgrade webpack-dev-server from 4.15.2 to 5.1.0 - #13

Open
Eric-Guo wants to merge 1 commit into
mainfrom
snyk-fix-8a2a1a752f881694481c44c998dcfe07
Open

[Snyk] Security upgrade webpack-dev-server from 4.15.2 to 5.1.0#13
Eric-Guo wants to merge 1 commit into
mainfrom
snyk-fix-8a2a1a752f881694481c44c998dcfe07

Conversation

@Eric-Guo

@Eric-Guo Eric-Guo commented Jul 1, 2026

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

  • package.json

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.

⚠️ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue
high severity Inefficient Algorithmic Complexity
SNYK-JS-BRACEEXPANSION-17706650

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:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

@Eric-Guo

Eric-Guo commented Jul 1, 2026

Copy link
Copy Markdown
Owner Author

Merge Risk: High

This is a major version upgrade from v4 to v5 that introduces significant breaking changes requiring configuration updates.

Key Breaking Changes:

  • Environment Requirements: Support for older versions of Node.js has been dropped. The new minimum required versions are:

    • Node.js: 18.12.0 or newer. [1, 2]
    • webpack: 5.0.0 or newer. [1, 2]
    • webpack-cli: 5.0.0 or newer. [1]
  • Configuration (devServer options):

    • HTTPS/HTTP2: The https and http2 options have been removed. You must now use the new server option to configure HTTPS, HTTP/2, and custom certificates. [1]
    • Middleware: The onBeforeSetupMiddleware and onAfterSetupMiddleware options have been replaced by the setupMiddlewares option. [1]
    • Proxy: The proxy option no longer accepts an object. It must now be an array of proxy objects. [1]

Recommendation:
Developers must review their webpack.config.js file and update the devServer configuration according to the official migration guide to ensure compatibility. The most common changes will involve how HTTPS and custom middleware are configured.

Source: Official Migration Guide [1]

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

Copilot AI review requested due to automatic review settings July 1, 2026 02:42

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 aims to remediate a Snyk-reported vulnerability by upgrading the webpack-dev-server dependency used by the Rails + Shakapacker frontend build pipeline.

Changes:

  • Bumps webpack-dev-server from ^4.15.2 to ^5.1.0 in package.json.

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

Comment thread package.json
"webpack-assets-manifest": "^5.2.1",
"webpack-cli": "^6.0.1",
"webpack-dev-server": "^4.15.2",
"webpack-dev-server": "^5.1.0",
Comment thread package.json
"webpack-assets-manifest": "^5.2.1",
"webpack-cli": "^6.0.1",
"webpack-dev-server": "^4.15.2",
"webpack-dev-server": "^5.1.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.

3 participants