Skip to content

[Snyk] Security upgrade webpack-dev-server from 4.15.2 to 5.2.7 - #3331

Open
caniszczyk wants to merge 1 commit into
mainfrom
snyk-fix-6eeb73ba6abc90c00cdc409fcaeaae45
Open

caniszczyk wants to merge 1 commit into
mainfrom
snyk-fix-6eeb73ba6abc90c00cdc409fcaeaae45

Conversation

@caniszczyk

Copy link
Copy Markdown

snyk-top-banner

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

Snyk changed the following file(s):

  • ui/package.json
  • ui/package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Origin Validation Error
SNYK-JS-WEBPACKDEVSERVER-21431002
  706  

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.

@caniszczyk

Copy link
Copy Markdown
Author

Merge Risk: High

This is a major version upgrade from v4 to v5 and includes significant breaking changes that require configuration updates.

Key Breaking Changes:

  • Environment: Support for Node.js versions below 18.12.0 has been dropped. It also requires webpack v5.0.0+ and webpack-cli v5.0.0+.
  • Configuration (devServer):
    • Middleware hooks onAfterSetupMiddleware and onBeforeSetupMiddleware have been removed and replaced by a new setupMiddlewares option.
    • The proxy option structure has changed from an object to an array of objects, requiring a different configuration format.
    • The http2 and https options were removed. HTTPS and HTTP/2 are now configured via the server option.
  • Node.js API: The constructor signature for Server has changed. It now takes (options, compiler) instead of (compiler, options).
  • CLI: The --open-app and --web-socket-server command-line options have been renamed to --open-app-name and --web-socket-server-type respectively.

Recommendation:
This upgrade requires a thorough review and migration of your webpack.config.js file, particularly the devServer block. Follow the official migration guide to update your configuration for middleware, proxy, and server settings. Ensure your Node.js version meets the new minimum requirement.

Source: Migration Guide v4 to v5

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

@netlify

netlify Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for devspace-docs canceled.

Name Link
🔨 Latest commit 010baf4
🔍 Latest deploy log https://app.netlify.com/projects/devspace-docs/deploys/6adb47d0a3a385c4ca6e0463

This branch has not been deployed

No deployments
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.

2 participants