Skip to content

Commit 8a37b0e

Browse files
chore(release): new release (#5697)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent f21ed0f commit 8a37b0e

5 files changed

Lines changed: 14 additions & 19 deletions

File tree

.changeset/constructor-options-undefined.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.changeset/csrf-protect-state-changing-routes.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/handle-malformed-host-origin-headers.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## 5.2.6
4+
5+
### Patch Changes
6+
7+
- fix: allow `undefined` as the `Server` constructor `options` argument again (by [@bjohansebas](https://github.com/bjohansebas) in [#5695](https://github.com/webpack/webpack-dev-server/pull/5695))
8+
9+
Restores accepting `undefined` (defaulting it to `{}`) for the `options`
10+
argument, so passing a webpack config's optional `devServer` field type-checks and works as before.
11+
12+
- 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](https://github.com/bjohansebas) in [#5698](https://github.com/webpack/webpack-dev-server/pull/5698))
13+
14+
- Handle malformed `Host` and `Origin` header values gracefully when validating requests. (by [@bjohansebas](https://github.com/bjohansebas) in [#5699](https://github.com/webpack/webpack-dev-server/pull/5699))
15+
316
## 5.2.5
417

518
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack-dev-server",
3-
"version": "5.2.5",
3+
"version": "5.2.6",
44
"description": "Serves a webpack app. Updates the browser on changes.",
55
"homepage": "https://github.com/webpack/webpack-dev-server#readme",
66
"bugs": "https://github.com/webpack/webpack-dev-server/issues",

0 commit comments

Comments
 (0)