mongoose
9.12.2 · 16 Nov 2026MIT9.4M / weekRepositoryHomepagenpmAtom feed
9.13.0 is the newest release of 9.x.
In short
8 fixed2 internal
Release note
9.12.2 / 2026-11-16
query: Make sanitizeFilter catch any fields that start with $ in top-level filter to avoid bypass using $_internalSchemaXor and other MongoDB internal expressions
query: Hardening for sanitizeProjection
array: Avoid converting BigInts to numbers in addToSet() #16693 luantaraschi
cursor: Propagate error passed to destroy() without re-emitting if error already emitted #16686 #16610 #16609 IbrahimHafez1
query: Throw cast errors and respect strict option in replaceOne() #16629 #16628 OmBhandwaldar
castArrayFilters: Cast $and/$or/$nor wherever they appear in an array filter #16638 #16637 mtechcave1
document: Allow setting dotted paths 3+ levels deep underneath single nested subdocuments #16691 RagedPanda
connection: Reset document state before retrying after a transient commit error #16640 #16639 IbrahimHafez1
array: Avoid converting BigInts to numbers in addToSet() #16693 luantaraschi
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.