Skip to content

[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 in RequestInit.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

Full Changelog: https://github.com/nodejs/undici/compare/v5.26.4...v5.26.5

v5.26.4

What's Changed

New Contributors

Full 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

Full Changelog: https://github.com/nodejs/undici/compare/v5.26.0...v5.26.1

v5.26.0

What's Changed

... (truncated)

Commits

Updates @sveltejs/kit from 1.25.0 to 1.27.0

Release notes

Sourced from @​sveltejs/kit's releases.

@​sveltejs/kit@​1.27.0

Minor Changes

  • feat: add invalidateAll boolean option to enhance callback (#9889)

@​sveltejs/kit@​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 in load functions to allow libraries to patch it (#10009)

  • chore(deps): update dependency undici to ~5.26.0 (#10860)

@​sveltejs/kit@​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)

@​sveltejs/kit@​1.25.1

Patch Changes

  • fix: correct line numbers in stack trace (#10769)

  • fix: correctly return 404 when navigating to a missing page and the root layout fetches a prerendered endpoint (#10565)

  • fix: allow optional param in middle of route (#10736)

  • chore: update undici (#10641)

Changelog

Sourced from @​sveltejs/kit's changelog.

1.27.0

Minor Changes

  • feat: add invalidateAll boolean option to enhance 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 in load 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

  • fix: correct line numbers in stack trace (#10769)

  • fix: correctly return 404 when navigating to a missing page and the root layout fetches a prerendered endpoint (#10565)

  • fix: allow optional param in middle of route (#10736)

  • chore: update undici (#10641)

Commits
  • 4ce50ee Version Packages (#10910)
  • 050447a feat: Allow bypassing invalidateAll in enhance (#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: use window.fetch in load 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

Merge request reports

Loading