Skip to content

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

Merged
kala-moz merged 1 commit into
mainfrom
depfu/update/npm/webpack-dev-server-5.2.4
May 19, 2026
Merged

🚨 [security] Update webpack-dev-server 5.2.3 β†’ 5.2.4 (patch)#1040
kala-moz merged 1 commit into
mainfrom
depfu/update/npm/webpack-dev-server-5.2.4

Conversation

@depfu
Copy link
Copy Markdown
Contributor

@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 added the dependencies Pull requests that update a dependency file label May 18, 2026
@depfu depfu Bot assigned kala-moz May 18, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented May 18, 2026

βœ… Deploy Preview for mozilla-perfcompare ready!

Name Link
πŸ”¨ Latest commit 71ddd34
πŸ” Latest deploy log https://app.netlify.com/projects/mozilla-perfcompare/deploys/6a0ba7f008046100083b9ea5
😎 Deploy Preview https://deploy-preview-1040--mozilla-perfcompare.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 96.38%. Comparing base (bbeb0e2) to head (71ddd34).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1040   +/-   ##
=======================================
  Coverage   96.38%   96.38%           
=======================================
  Files         113      113           
  Lines        3260     3260           
  Branches      737      737           
=======================================
  Hits         3142     3142           
  Misses        117      117           
  Partials        1        1           

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • πŸ“¦ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kala-moz
Copy link
Copy Markdown
Contributor

@depfu rebase

@depfu depfu Bot force-pushed the depfu/update/npm/webpack-dev-server-5.2.4 branch from 2c20409 to 71ddd34 Compare May 18, 2026 23:59
@kala-moz kala-moz merged commit ff8758d into main May 19, 2026
10 checks passed
@depfu depfu Bot deleted the depfu/update/npm/webpack-dev-server-5.2.4 branch May 19, 2026 00:04
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.

1 participant