v5.2.7
Changed 1
- Parse the open-editor URL query without relying on the Host header
Fixed 1
- Handle malformed open-editor URLs with a controlled response
Security 2
- Validate the Host and Origin headers and enforce same-origin checks on WebSocket upgrade requests handled by proxies with ws: true, preventing cross-origin pages from connecting to proxied WebSocket services through the development server behavior changed · inferred, marked in the notes below
- Validate Host and HTTP/2 authority headers independently of Origin protocol exceptions, including when allowedHosts is "all" behavior changed · inferred, marked in the notes below
2 changes to check, marked in the notes below
From webpack-dev-server
Patch Changes
-
Validate the
HostandOriginheaders and enforce same-origin checks on WebSocket upgrade requests handled by proxies withws: true. This prevents cross-origin pages from connecting to proxied WebSocket services through the development server. (by @github-actions in #5766) behavior changed · inferred -
Validate Host and HTTP/2 authority headers independently of Origin protocol exceptions, including when
allowedHostsis"all". Handle malformed open-editor URLs with a controlled response and parse their query without relying on the Host header. (by @bjohansebas in #5772) behavior changed · inferred