Packages

vite

8.3.8 · 11 Nov 2026MIT286.5M / weekRepositoryHomepagenpmAtom feed

Upgrading vite From 5.0.4 to 5.4.21

62 releases in betweenevery note read

Other targets from 5.0.4Clears its 23 advisories6.4.4Latest8.3.8
  1. 5.0.4yours
  2. 14 releases
  3. 5.1.5security
  4. 37 releases
  5. 5.4.12breaking
  6. 8 releases
  7. 5.4.21target

Before you upgrade

Tick each one off as you go
  • Breaking5.4.12
  • Breaking5.4.12
  • Deprecated5.2.7

Security

Fixes 15 advisories affecting 5.0.4

  • __vite__mapDeps code injection (#15732) (aff54e1), closes #15732

    5.1.5

Release by release

  1. 5.4.21

    20 Oct 20251 fix
    • Fixed

      dev: Trim trailing slash before server.fs.deny check (#20968) (#20970) (cad1d31), closes #20968 #20970

  2. 5.4.20

    8 Sep 20252 fixes
    • Fixed

      Apply fs.strict check to HTML files (#20736) (482000f), closes #20736

    • Fixed

      Port sirv@3.0.2 changes to sirv@2.0.4 (#20737) (4f1c35b), closes #20737

  3. 5.4.19

    30 Apr 20251 fix
    • Fixed

      Backport #19965, check static serve file inside sirv (#19966) (766947e), closes #19965 #19966

  4. 5.4.18

    10 Apr 20251 fix
    • Fixed

      Backport #19830, reject requests with # in request-target (#19831) (823675b), closes #19830 #19831

  5. 5.4.17

    3 Apr 20251 fix
    • Fixed

      Backport #19782, fs check with svg and relative paths (#19784) (84b2b46), closes #19782 #19784

  6. 5.4.16

    31 Mar 20251 fix
    • Fixed

      Backport #19761, fs check in transform middleware (#19762) (b627c50), closes #19761 #19762

  7. 5.4.15

    24 Mar 20251 fix
    • Fixed

      Backport #19702, fs raw query with query separators (#19703) (807d7f0), closes #19702 #19703

  8. 5.4.14

    21 Jan 20252 fixes
    • Fixed

      preview.allowedHosts with specific values was not respected (#19246) (9df6e6b), closes #19246

    • Fixed

      Allow CORS from loopback addresses by default (#19249) (7d1699c), closes #19249

3 other lines we could not sort, mostly version bumps
  • fix(logger): truncate log over 5000 characters long (#16581) (#17729) (f4f488f), closes #16581 #17729

    5.3.5
  • perf: use workspace root for fs cache (#15712) (#16476) (77e7359), closes #15712 #16476

    5.2.10
  • "fix: upgrade esbuild to 0.20.x" (#16072) (11cceea), closes #16072

    5.1.5

77 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.