mongoose
9.11.4 · 23 Oct 2026MIT5.8M / weekRepositoryHomepagenpmAtom feed
Upgrading mongoose from 6.2.4 to 6.2.5
1 release in betweenevery note read
Security
7 advisories still affect 6.2.5
- Mongoose: Prototype pollution in mongoose update casting via __proto__-prefixed dotted path (Schema._getSchema/path getter)moderate · GHSA-664h-wqgq-64gw
- Mongoose Prototype Pollution vulnerabilitycritical · GHSA-9m93-w8w6-76hh
- automattic/mongoose vulnerable to Prototype pollution via Schema.pathhigh · GHSA-f825-f98c-gj3g
Upgrading to 6.13.10 clears them.
Release by release
- new
Only deep clone validators if necessary #11412 Uzlopak
- fixed
mongoose: Add isObjectIdOrHexString() to better capture the most common use case for
isValidObjectId()#11419 - fixed
query: Prevent modifying discriminator key in updates using operators other than
$set#11456 - fixed
populate+types: Call foreignField functions with doc as 1st param, better typings for
localFieldandforeignFieldfunctions #11321
- new
3 internal lines (docs, tests, tooling) left out.