Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 6, 2025

Bumps webpack-dev-server from 5.2.0 to 5.2.1.

Release notes

Sourced from webpack-dev-server's releases.

v5.2.1

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

Sourced from webpack-dev-server's changelog.

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)
Commits
  • 0d22a08 chore(release): 5.2.1
  • 6045b1e chore(deps): update (#5444)
  • ffd0b86 fix: take the first network found instead of the last one, this restores the ...
  • 9ea7b08 ci: update dependency-review-action (#5442)
  • 5c9378b Merge commit from fork
  • d2575ad Merge commit from fork
  • 8c1abc9 fix: prevent overlay for errors caught by React error boundaries (#5431)
  • 5a39c70 ci: update codecov/codecov-action to v5 (#5406)
  • 55220a8 chore(deps-dev): bump the dependencies group across 1 directory with 4 update...
  • 09f6f8e chore(deps): bump the dependencies group across 1 directory with 2 updates (#...
  • See full diff in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Summary by Sourcery

Bump webpack-dev-server from 5.2.0 to 5.2.1 and regenerate lockfile

Bug Fixes:

  • Restrict cross-origin HTTP requests by enforcing Access-Control-Allow-Origin header
  • Block WebSocket connections from IP-based Origin headers unless allowed via hosts configuration
  • Prevent error overlay for errors caught by React error boundaries
  • Restore selecting the first network interface instead of the last

Enhancements:

  • Regenerate pnpm-lock.yaml to pull in updated transitive dependencies

Chores:

  • Update example/package.json to require webpack-dev-server ^5.2.1

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 5.2.0 to 5.2.1.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](webpack/webpack-dev-server@v5.2.0...v5.2.1)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  dependency-version: 5.2.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jun 6, 2025
@sourcery-ai
Copy link

sourcery-ai bot commented Jun 6, 2025

Reviewer's Guide

This PR upgrades webpack-dev-server from 5.2.0 to 5.2.1 by updating the version specifier in the example’s package.json and regenerating the pnpm lockfile to incorporate the new release (including its security and bugfix patches) along with updated integrity hashes for transitive dependencies.

Sequence Diagram: Updated Cross-Origin Request Handling in webpack-dev-server 5.2.1

sequenceDiagram
    actor Client
    participant WDS_Old as "webpack-dev-server <5.2.1"
    participant WDS_New as "webpack-dev-server 5.2.1"

    Client->>WDS_Old: Cross-origin HTTP request
    WDS_Old-->>Client: Response (potentially less strict)

    Note over Client, WDS_New: Later, with updated server (v5.2.1)
    Client->>WDS_New: Cross-origin HTTP request
    WDS_New->>WDS_New: Verify "Access-Control-Allow-Origin" policy
    alt Request allowed by ACAO policy
        WDS_New-->>Client: HTTP Response (with ACAO header)
    else Request blocked by ACAO policy
        WDS_New-->>Client: HTTP Error / Denied
    end
Loading

Sequence Diagram: Updated WebSocket Connection Policy for IP in Origin Header in webpack-dev-server 5.2.1

sequenceDiagram
    actor Client
    participant WDS_Old as "webpack-dev-server <5.2.1"
    participant WDS_New as "webpack-dev-server 5.2.1"

    Client->>WDS_Old: WebSocket request (Origin: IP_ADDRESS)
    WDS_Old-->>Client: Connection established (potentially less strict)

    Note over Client, WDS_New: Later, with updated server (v5.2.1)
    Client->>WDS_New: WebSocket request (Origin: IP_ADDRESS)
    WDS_New->>WDS_New: Verify Origin IP against "allowedHosts" & Host header
    alt Origin IP allowed by configuration
        WDS_New-->>Client: WebSocket Connection established
    else Origin IP not allowed
        WDS_New-->>Client: WebSocket Connection Error / Denied
    end
Loading

File-Level Changes

Change Details Files
Bump webpack-dev-server to v5.2.1
  • Update dependency specifier from ^5.2.0 to ^5.2.1
  • Refresh resolution entry and integrity hash for webpack-dev-server
  • Adjust example/package.json to reference the new version
pnpm-lock.yaml
packages/example/package.json
Regenerate lockfile for updated dependencies
  • Refresh integrity hashes and version entries for transitive packages
  • Align nested dependency references to the new webpack-dev-server release
pnpm-lock.yaml

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

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants