Download Latest Version v6.0.0 source code.zip (711.9 kB)
Email in envelope

Get an email when there's a new version of webpack DevServer

Home / v5.2.6
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-07-02 1.2 kB
v5.2.6 source code.tar.gz 2026-07-02 494.8 kB
v5.2.6 source code.zip 2026-07-02 730.9 kB
Totals: 3 Items   1.2 MB 0

Patch Changes

  • fix: allow undefined as the Server constructor options argument again (by @bjohansebas in #5695)

Restores accepting undefined (defaulting it to {}) for the options argument, so passing a webpack config's optional devServer field type-checks and works as before.

  • Protect the built-in state-changing routes (/webpack-dev-server/invalidate and /webpack-dev-server/open-editor) against cross-site request forgery. Requests are now checked with Sec-Fetch-Site (falling back to an Origin/Host comparison when it is absent), so a cross-site page can no longer trigger a rebuild or open a file in the editor. Same-origin requests, user-initiated navigations, and non-browser clients (e.g. curl) are unaffected. (by @bjohansebas in #5698)

  • Handle malformed Host and Origin header values gracefully when validating requests. (by @bjohansebas in #5699)

Source: README.md, updated 2026-07-02