Packages

mongoose

9.12.2 · 16 Nov 2026MIT9.5M / weekRepositoryHomepagenpmAtom feed

Upgrading mongoose From 5.13.23 to 6.13.12

122 releases in betweennotes for 76

Reading releases, release notes and advisories…

Other targets from 5.13.23Latest9.12.2
6.0.0 has no release note on GitHub or in the repository's changelog, so its breaking changes are missing from the counts below.
  1. 5.13.23yours
  2. 6.0.0major
  3. 11 releases
  4. 6.0.12breaking
  5. 108 releases
  6. 6.13.12target
  7. 3 pre
2+
changes to make
7
advisories fixed
86+
new
363+
fixes

Counted from 76 of 122 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking6.0.12
  • Deprecated6.8.0

Security

Release by release

  1. 6.13.12no release note

  2. 6.13.11

    10 Aug 20261 fix
    • Fixed

      query: Apply sanitizeFilter in countDocuments and cursor

  3. 6.13.10no release note

  4. 6.13.9

    4 Feb 20261 new · 1 fix
    • New

      types(aggregate): add $firstN, $lastN, $bottom, $bottomN, $minN and $maxN operators #15303 #15299

    • Fixed

      Handle other top-level query operators in sanitizeFilter

  5. 6.13.7 – 6.13.82 releases, nothing new or fixed in the notes

  6. 6.13.6

    13 Jan 20251 fix
    • Fixed

      Disallow nested $where in populate match

  7. 6.10.2 – 6.13.527 releases, no release note

  8. 6.10.1

    3 Mar 20233 fixes
    • Fixed

      Avoid removing empty query filters in $and and $or #13086 #12898

    • Fixed

      schematype: Fixed validation for required UUID field #13018 lpizzinidev

    • Fixed

      types: Add missing Paths generic param to Model.populate() #13070

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