---
title: "mongoose 9.12.2: release notes, upgrades and advisories"
description: "mongoose 9.12.2: release notes, breaking changes by major version and 14 known advisories with their fix."
url: https://inlinr.com/packages/mongoose
lang: en
---

[Packages](https://inlinr.com/packages)

# mongoose

9.12.2 · 16 Nov 2026 MIT 9.5M / week [Repository](https://github.com/Automattic/mongoose) [Homepage](https://mongoosejs.com/) [npm](https://www.npmjs.com/package/mongoose) [Atom feed](https://inlinr.com/packages/feed/mongoose)

Your version 

## Where each line stands

[Plan an upgrade](https://inlinr.com/packages/mongoose/upgrade)

LineNewestSecurity

- 9.x 9.12.3 Safe from 9.11.4 Latest line
- 8.x 8.24.10 Safe from 8.24.7 [To 9.12.2](https://inlinr.com/packages/mongoose/upgrade/8.24.10-9.12.2)
- 7.x 7.8.14 Safe from 7.8.13 [To 9.12.2](https://inlinr.com/packages/mongoose/upgrade/7.8.14-9.12.2)
- 6.x 6.13.13 Safe from 6.13.12 [To 9.12.2](https://inlinr.com/packages/mongoose/upgrade/6.13.13-9.12.2)
- 5.x and older 5.13.23 63 open advisories, worst critical  · last release Dec 2024, no longer updated [To 9.12.2](https://inlinr.com/packages/mongoose/upgrade/5.13.23-9.12.2)

## Latest releases

[All 1025 releases](https://inlinr.com/packages/mongoose/releases)

1. 9.x · latest line
2. ### [9.12.3](https://inlinr.com/packages/mongoose/releases/9.12.3 "Open this release") [](https://github.com/Automattic/mongoose/releases/tag/9.12.3 "Read this release where it was published")  
20 Nov 2026

  - **model:** Match pathsToSkip string paths exactly in Model.validate() [#16706](https://github.com/automattic/mongoose/issues/16706) [NotAFlightRisk](https://github.com/NotAFlightRisk "https://github.com/NotAFlightRisk")
  - **query:** Avoid casting $expr $in search value when it is an expression [#16709](https://github.com/automattic/mongoose/issues/16709) [kwy404](https://github.com/kwy404 "https://github.com/kwy404")
  - **update:** Run update validators on mixed paths in subdocuments [#16708](https://github.com/automattic/mongoose/issues/16708) [#16707](https://github.com/automattic/mongoose/issues/16707) [lazerg](https://github.com/lazerg "https://github.com/lazerg")
3. ### [9.12.2](https://inlinr.com/packages/mongoose/releases/9.12.2 "Open this release") [](https://github.com/Automattic/mongoose/releases/tag/9.12.2 "Read this release where it was published")  
16 Nov 2026

  - **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](https://github.com/automattic/mongoose/issues/16693) [luantaraschi](https://github.com/luantaraschi "https://github.com/luantaraschi")
4. ### [9.12.1](https://inlinr.com/packages/mongoose/releases/9.12.1 "Open this release") [](https://github.com/Automattic/mongoose/releases/tag/9.12.1 "Read this release where it was published")  
9 Nov 2026

  - **update:** Avoid quadratic ancestor lookup in update validators and validate nested array subdocs once [#16586](https://github.com/automattic/mongoose/issues/16586) [github.com/Re-cool](https://github.com/Re-cool "https://github.com/Re-cool")
  - Keep lib/ source within Latin-1 [#16681](https://github.com/automattic/mongoose/issues/16681) [orgads](https://github.com/orgads "https://github.com/orgads")
  - **map:** Avoid quadratic concat() when creating a MongooseMap from an object [#16677](https://github.com/automattic/mongoose/issues/16677) [ptweezy](https://github.com/ptweezy "https://github.com/ptweezy")

Dependency tracking

## Know when your own dependencies move

mongoose had 7 security advisories in the last 12 months. inlinr emails you the day one touches a project of yours, with the version that fixes it.

- Advisories reach you  
An email when a critical or high advisory affects a project, before the next install.
- Upgrades checked first  
Peer ranges, Node, ESM-only and types changes read before you bump.
- Only what matters  
Majors and breaking notes stay; patches and sibling bumps fold into one line.

[How dependency tracking works](https://inlinr.com/dependencies)

## Security

[All 14](https://inlinr.com/packages/mongoose/security)

- [Mongoose: sanitizeFilter not applied on countDocuments](https://inlinr.com/advisories/GHSA-pcrw-h46h-c93h) Critical · fixed in 9.9.2, 8.24.3, 7.8.12 +1
- [Mongoose search injection vulnerability](https://inlinr.com/advisories/GHSA-vg7j-7cwx-8wgw) Critical · fixed in 8.9.5, 7.8.4, 6.13.6
- [Mongoose Prototype Pollution vulnerability](https://inlinr.com/advisories/GHSA-9m93-w8w6-76hh) Critical · fixed in 7.3.3, 6.11.3, 5.13.20

## Health

[Details](https://inlinr.com/packages/mongoose/security#signals)

- **Provenance**:
- **Publisher**:
- **Maintainers**:
- **Scorecard**:
- **Size**:

## Weekly downloads

Reading releases, release notes and advisories…

Registry facts last checked 18 Nov 2026\. Releases and advisories last read 22 Nov 2026.

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
