Skip to content

[Snyk] Upgrade webpack-dev-server from 4.15.1 to 5.2.1 #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

nerdy-tech-com-gitub
Copy link
Owner

@nerdy-tech-com-gitub nerdy-tech-com-gitub commented Jun 14, 2025

snyk-top-banner

Snyk has created this PR to upgrade webpack-dev-server from 4.15.1 to 5.2.1.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

  • The recommended version is 9 versions ahead of your current version.

  • The recommended version was released 3 months ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Origin Validation Error
SNYK-JS-WEBPACKDEVSERVER-10300775
67 Proof of Concept
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-CROSSSPAWN-8303230
67 Proof of Concept
high severity Denial of Service (DoS)
SNYK-JS-HTTPPROXYMIDDLEWARE-8229906
67 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-PATHTOREGEXP-8482416
67 Proof of Concept
medium severity Cross-site Scripting (XSS)
SNYK-JS-SERIALIZEJAVASCRIPT-6147607
67 Proof of Concept
medium severity Exposed Dangerous Method or Function
SNYK-JS-WEBPACKDEVSERVER-10300777
67 Proof of Concept
medium severity Cross-site Scripting (XSS)
SNYK-JS-COOKIE-8163060
67 No Known Exploit
medium severity Always-Incorrect Control Flow Implementation
SNYK-JS-HTTPPROXYMIDDLEWARE-9691387
67 No Known Exploit
medium severity Improper Check for Unusual or Exceptional Conditions
SNYK-JS-HTTPPROXYMIDDLEWARE-9691389
67 No Known Exploit
medium severity Improper Input Validation
SNYK-JS-NANOID-8492085
67 No Known Exploit
Release notes
Package name: webpack-dev-server
  • 5.2.1 - 2025-03-26

    5.2.1 (2025-03-26)

    Security

    • cross-origin requests are not allowed unless allowed by Access-Control-Allow-Origin header
    • requests with an IP addresses in the Origin header are not allowed to connect to WebSocket server unless configured by allowedHosts or it different from the Host header

    The above changes may make the dev server not work if you relied on such behavior, but unfortunately they carry security risks, so they were considered as fixes.

    Bug Fixes

    • prevent overlay for errors caught by React error boundaries (#5431) (8c1abc9)
    • take the first network found instead of the last one, this restores the same behavior as 5.0.4 (#5411) (ffd0b86)
  • 5.2.0 - 2024-12-11

    5.2.0 (2024-12-11)

    Features

    • added getClientEntry and getClientHotEntry methods to get clients entries (dc642a8)

    Bug Fixes

    • speed up initial client bundling (145b5d0)
  • 5.1.0 - 2024-09-03

    5.1.0 (2024-09-03)

    Features

    • add visual progress indicators (a8f40b7)
    • added the app option to be Function (by default only with connect compatibility frameworks) (3096148)
    • allow the server option to be Function (#5275) (02a1c6d)
    • http2 support for connect and connect compatibility frameworks which support HTTP2 (#5267) (6509a3f)

    Bug Fixes

  • 5.0.4 - 2024-03-19

    5.0.4 (2024-03-19)

    Bug Fixes

  • 5.0.3 - 2024-03-12

    5.0.3 (2024-03-12)

    Bug Fixes

  • 5.0.2 - 2024-02-16

    5.0.2 (2024-02-16)

    Bug Fixes

  • 5.0.1 - 2024-02-13

    5.0.1 (2024-02-13)

    Bug Fixes

  • 5.0.0 - 2024-02-12

    5.0.0 (2024-02-12)

    Migration Guide and Changes.

  • 4.15.2 - 2024-03-20

    4.15.2 (2024-03-20)

    Bug Fixes

    • security: bump webpack-dev-middleware (4116209)
  • 4.15.1 - 2023-06-09

    4.15.1 (2023-06-09)

    Bug Fixes

    • replace :: with localhost before openBrowser() (#4856) (874c44b)
    • types: compatibility with @ types/ws (#4899) (34bcec2)
from webpack-dev-server GitHub release notes

Important

  • Warning: This PR contains a major version upgrade, and may be a breaking change.
  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Summary by Sourcery

Upgrade webpack-dev-server from 4.15.1 to 5.2.1 to address multiple security vulnerabilities and bring in the latest upstream fixes and enhancements.

Bug Fixes:

  • Resolve high- and medium-severity security vulnerabilities including ReDoS, DoS, XSS, origin validation errors, and improper input validation in webpack-dev-server and its dependencies.

Enhancements:

  • Enforce stricter Access-Control-Allow-Origin and host validation for cross-origin and WebSocket requests.
  • Include upstream fixes for error overlay behavior and consistent network interface selection in the development server.

Snyk has created this PR to upgrade webpack-dev-server from 4.15.1 to 5.2.1.

See this package in npm:
webpack-dev-server

See this project in Snyk:
https://app.snyk.io/org/nerds-github/project/aa77fd79-7d27-4ab0-9d41-5dd117531784?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

sourcery-ai bot commented Jun 14, 2025

Reviewer's Guide

This PR updates the project’s development server by bumping webpack-dev-server from v4.15.0 to v5.2.1 in package.json, addressing multiple security vulnerabilities through a major version upgrade; reviewers should confirm dev-server configurations and compatibility with breaking changes introduced in v5.

File-Level Changes

Change Details Files
Upgrade webpack-dev-server to a new major version
  • Bump webpack-dev-server version from ^4.15.0 to ^5.2.1 in package.json
glances/outputs/static/package.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

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