Skip to content

🚨 [security] Update webpack-dev-server 5.2.3 β†’ 5.2.4 (patch)#407

Open
depfu[bot] wants to merge 1 commit into
masterfrom
depfu/update/yarn/webpack-dev-server-5.2.4
Open

🚨 [security] Update webpack-dev-server 5.2.3 β†’ 5.2.4 (patch)#407
depfu[bot] wants to merge 1 commit into
masterfrom
depfu/update/yarn/webpack-dev-server-5.2.4

Conversation

@depfu
Copy link
Copy Markdown

@depfu depfu Bot commented May 18, 2026


🚨 Your current dependencies have known security vulnerabilities 🚨

This dependency update fixes known security vulnerabilities. Please see the details below and assess their impact carefully. We recommend to merge and deploy this as soon as possible!


Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ webpack-dev-server (5.2.3 β†’ 5.2.4) Β· Repo Β· Changelog

Security Advisories 🚨

🚨 webpack-dev-server vulnerable to cross-origin source code exposure on non-HTTPS origins

Impact

When webpack-dev-server is running on a non-HTTPS origin (the default), cross-origin requests from malicious websites can load the dev server's JavaScript bundles via <script> tags. The fix introduced in v5.2.1 (CVE-2025-30359) relied on Sec-Fetch-Mode and Sec-Fetch-Site request headers to block these requests, but browsers only send these headers for potentially trustworthy origins. Over plain HTTP, the headers are absent and the check is bypassed.

An attacker who knows the dev server's host, port, and output path can exfiltrate all module source code by intercepting the webpack runtime's module registration.

This does not affect Chrome 142+ (and other Chromium-based browsers) due to local network access restrictions.

Patches

Patched in webpack-dev-server >= 5.2.4 by setting Cross-Origin-Resource-Policy: same-origin on responses.

Workarounds

Run the dev server with HTTPS enabled (--https or server.type: 'https' in config).

Resources

Release Notes

5.2.4

5.2.4 (2026-05-11)

Bug Fixes

  • set Cross-Origin-Resource-Policy header to prevent source code theft over HTTP

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 4 commits:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu Bot requested review from canova and fatadel as code owners May 18, 2026 14:07
@depfu depfu Bot added the dependencies Pull requests that update a dependency file label May 18, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented May 18, 2026

βœ… Deploy Preview for firefox-devtools-react-contextmenu ready!

Name Link
πŸ”¨ Latest commit ce27847
πŸ” Latest deploy log https://app.netlify.com/projects/firefox-devtools-react-contextmenu/deploys/6a0b1d22207ec60008e17e51
😎 Deploy Preview https://deploy-preview-407--firefox-devtools-react-contextmenu.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
πŸ€– Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@depfu
Copy link
Copy Markdown
Author

depfu Bot commented May 18, 2026

Sorry, but the merge failed with:

At least 1 approving review is required by reviewers with write access.

1 similar comment
@depfu
Copy link
Copy Markdown
Author

depfu Bot commented May 18, 2026

Sorry, but the merge failed with:

At least 1 approving review is required by reviewers with write access.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants