Packages

@sveltejs/kit

3.3.0 · 17 Nov 2026MIT5.1M / weekRepositoryHomepagenpmAtom feed

Upgrading @sveltejs/kit From 2.48.3 to 2.70.4

54 releases in betweenevery note read

Other targets from 2.48.3Clears its 12 advisories3.1.1Latest3.3.0
  1. 2.48.3yours
  2. 46 releases
  3. 2.69.1security
  4. 2 releases
  5. 2.70.0security
  6. 3 releases
  7. 2.70.4target

Before you upgrade

Tick each one off as you go
  • Breaking2.61.0
  • Breaking2.59.0
  • Breaking2.58.0
  • Breaking2.58.0
  • Breaking2.56.0
  • Breaking2.56.0
  • Breaking2.56.0
  • Breaking2.56.0
  • Breaking2.50.0
  • Breaking2.48.8

Security

  • Prevent path traversal when previewing prerendered pages and data on Windows

    2.70.4
  • Enable CSRF protection in builds with a non-production NODE_ENV value

    2.70.0
  • Prevent prototype pollution when deleting file inputs

    2.69.1

Release by release

  1. 2.70.4

    Security fix5 Nov 20264 fixes
    • Security

      Prevent path traversal when previewing prerendered pages and data on Windows

    • Fixed

      Return a 400 response instead of throwing when reroute rewrites a malformed pathname

    • Fixed

      Escape cache-control headers in prerendered HTML

    • Fixed

      Prevent server-side route resolution from loading code from another origin for pathnames starting with //

    • Fixed

      Prevent server-side self-fetch fallbacks from following redirects

  2. 2.70.3

    18 Aug 20261 fix
    • Fixed

      Avoid eagerly reading $app/state dependencies during module initialization

  3. 2.70.2

    29 Jul 20261 fix
    • Fixed

      Prevent quadratic backtracking in Accept header content negotiation

  4. 2.70.1nothing new or fixed in the note

  5. 2.70.0

    Security fix17 Jul 20261 new
    • Security

      Enable CSRF protection in builds with a non-production NODE_ENV value

    • New

      Move defineEnvVars to @sveltejs/kit/env

  6. 2.69.3

    13 Jul 20263 fixes
    • Fixed

      Detect destructured load and actions exports during type generation

    • Fixed

      Ensure CSS URL references are absolute when paths.relative is false

    • Fixed

      Align MAX_COOKIE_SIZE with RFC 6265bis

  7. 2.69.2

    8 Jul 20261 fix
    • Fixed

      Set define values on globalThis when running Vitest

  8. 2.69.1

    Security fix2 Jul 20261 fix
    • Security

      Prevent prototype pollution when deleting file inputs

    • Fixed

      Prevent unhandled promise rejection

9 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.