[Security] Bump undici and @sveltejs/kit
Bumps undici to 5.26.5 and updates ancestor dependency @sveltejs/kit. These dependencies need to be updated together.
Updates undici
from 5.23.0 to 5.26.5 This update includes a security fix.
Vulnerabilities fixed
Undici's cookie header not cleared on cross-origin redirect in fetch
Impact
Undici clears Authorization headers on cross-origin redirects, but does not clear
Cookie
headers. By design,cookie
headers are forbidden request headers, disallowing them to be set inRequestInit.headers
in browser environments. Since Undici handles headers more liberally than the specification, there was a disconnect from the assumptions the spec made, and Undici's implementation of fetch.As such this may lead to accidental leakage of cookie to a 3rd-party site or a malicious attacker who can control the redirection target (ie. an open redirector) to leak the cookie to the 3rd party site.
Patches
This was patched in e041de359221ebeae04c469e8aff4145764e6d76, which is included in version 5.26.2.
Patched versions: 5.26.2 Affected versions: < 5.26.2
Release notes
Sourced from undici's releases.
v5.26.5
What's Changed
- Drop race condition in connect-timeout test by
@mcollina
in nodejs/undici#2360- Remove a couple of unnecessary async functions by
@kibertoad
in nodejs/undici#2367- Update namespace type with Fetch exports by
@Ethan-Arrowood
in nodejs/undici#2361Full Changelog: https://github.com/nodejs/undici/compare/v5.26.4...v5.26.5
v5.26.4
What's Changed
- use esbuild define/hooks by
@KhafraDev
in nodejs/undici#2342- fix request's arrayBuffer returning uint8 instead of arraybuffer by
@KhafraDev
in nodejs/undici#2344- fix: skip readMore call if parser is null or undefined by
@iiAku
in nodejs/undici#2346- test: first attempt for flaky fix by
@metcoder95
in nodejs/undici#2337- test: only include WebSocket in WPT Report where it's landed by
@panva
in nodejs/undici#2351- Update DispatchInterceptor.md by
@Uzlopak
in nodejs/undici#2354- fix: Avoid error for stream() being aborted by
@BobNobrain
in nodejs/undici#2355- fix names with esbuild by
@KhafraDev
in nodejs/undici#2359New Contributors
@iiAku
made their first contribution in nodejs/undici#2346@Uzlopak
made their first contribution in nodejs/undici#2354@BobNobrain
made their first contribution in nodejs/undici#2355Full Changelog: https://github.com/nodejs/undici/compare/v5.26.3...v5.26.4
v5.26.3
No release notes provided.
v5.26.2
Security Release, CVE-2023-45143.
v5.26.1
What's Changed
- Fix publish undici-types once and for all! by
@Ethan-Arrowood
in nodejs/undici#2338- Fix node detection omfg by
@KhafraDev
in nodejs/undici#2341Full Changelog: https://github.com/nodejs/undici/compare/v5.26.0...v5.26.1
v5.26.0
What's Changed
- use npm install instead of npm ci by
@Ethan-Arrowood
in nodejs/undici#2309- change default header to
node
by@Ethan-Arrowood
in nodejs/undici#2310- chore: change order of the pseudo-headers by
@kyrylodolynskyi
in nodejs/undici#2308- fix: Agent.Options.factory should accept URL object or string as parameter by
@nicole0707
in nodejs/undici#2295- build(deps-dev): bump sinon from 15.2.0 to 16.1.0 by
@dependabot
in nodejs/undici#2312- test: handle npm ignore-scripts settings by
@panva
in nodejs/undici#2313- feat: respect
--max-http-header-size
Node.js flag by@balazsorban44
in nodejs/undici#2234
... (truncated)
Commits
-
9197790
Bumped v5.26.5 -
c31bd88
Update namespace type with Fetch exports (#2361) -
24db5d4
Remove a couple of unnecessary async functions (#2367) -
63afd9b
Drop race condition in connect-timeout test (#2360) -
dea70e2
Bumped v5.26.4 -
0681760
fix names with esbuild (#2359) -
daf349f
fix: Avoid error for stream() being aborted (#2355) -
49254c3
Update DispatchInterceptor.md (#2354) -
52a7989
test: only include WebSocket in WPT Report where it's landed (#2351) -
40ab050
test: first attempt for flaky fix (#2337) - Additional commits viewable in compare view
Updates @sveltejs/kit
from 1.25.0 to 1.27.0
Release notes
Sourced from @sveltejs/kit
's releases.
@sveltejs/kit
@1
.27.0Minor Changes
- feat: add
invalidateAll
boolean option toenhance
callback (#9889)
@sveltejs/kit
@1
.26.0Minor Changes
- feat: infer route parameter type from matcher's guard check if applicable (#10755)
Patch Changes
fix: basic mime type handling for prerendered pages in preview (#10851)
chore: use just a single library (mrmime) for mime type handling (#10851)
chore: bump undici to address security issue (#10885)
fix: follow whatwg fetch spec for handling redirect loops (#10857)
fix: use
window.fetch
inload
functions to allow libraries to patch it (#10009)chore(deps): update dependency undici to ~5.26.0 (#10860)
@sveltejs/kit
@1
.25.2Patch Changes
fix: correctly update
$page.url.hash
when navigating history (#10843)fix: strip virtual module prefix from error messages (#10776)
fix: cancel ongoing navigation when the browser back button is hit to prevent an incorrect page from being rendered (#10727)
fix: only remove Vite manifest when copying files (#10782)
@sveltejs/kit
@1
.25.1Patch Changes
Changelog
Sourced from @sveltejs/kit
's changelog.
1.27.0
Minor Changes
- feat: add
invalidateAll
boolean option toenhance
callback (#9889)1.26.0
Minor Changes
- feat: infer route parameter type from matcher's guard check if applicable (#10755)
Patch Changes
fix: basic mime type handling for prerendered pages in preview (#10851)
chore: use just a single library (mrmime) for mime type handling (#10851)
chore: bump undici to address security issue (#10885)
fix: follow whatwg fetch spec for handling redirect loops (#10857)
fix: use
window.fetch
inload
functions to allow libraries to patch it (#10009)chore(deps): update dependency undici to ~5.26.0 (#10860)
1.25.2
Patch Changes
fix: correctly update
$page.url.hash
when navigating history (#10843)fix: strip virtual module prefix from error messages (#10776)
fix: cancel ongoing navigation when the browser back button is hit to prevent an incorrect page from being rendered (#10727)
fix: only remove Vite manifest when copying files (#10782)
1.25.1
Patch Changes
Commits
-
4ce50ee
Version Packages (#10910) -
050447a
feat: Allow bypassinginvalidateAll
inenhance
(#9889) -
b196712
chore: vite 5 test compatibility (#10896) -
8ac89e8
Version Packages (#10852) -
ee4db0d
chore: bump undici to address security issue (#10885) -
0381fee
fix: basic mime type handling for prerendered pages in preview (#10851) -
5a4dbe3
Infer route parameter type from matcher's guard check if applicable (#10755) -
6dd025c
chore(deps): update dependency undici to ~5.26.0 (#10860) -
be2c8a8
fix: follow whatwg fetch spec for handling redirect loops (#10857) -
67812ed
fix: usewindow.fetch
inload
functions to allow libraries to patch it (#... - Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts