npm package

mongoose vulnerabilities by version

The latest release, 9.13.1 (Nov 24, 2026), has no known vulnerabilities. 53% of last week’s 8.4M downloads went to versions with known vulnerabilities. OSV.dev lists 14 advisories for mongoose; the newest was published on Nov 10, 2026.

npm (opens in a new tab) describes it as “Mongoose MongoDB ODM”

Latest release
9.13.1
Nov 24, 2026, no known vulnerabilities
Downloads last week
8.4M
All versions, from npm
Advisories on OSV.dev
14
Newest Nov 10, 2026
Licence
MIT

Most-downloaded versions last week

From npm’s per-version download counts for the last 7 days, each checked against OSV.dev. Open a version for its advisories and what to upgrade to.

VersionKnown vulnerabilitiesDownloads
9.12.1Nov 9, 2026No known vulnerabilities512.8K
9.11.4Oct 23, 2026No known vulnerabilities466.4K
8.24.8Nov 2, 2026No known vulnerabilities393.7K
8.24.7Oct 23, 2026No known vulnerabilities380.4K
8.24.11Nov 23, 2026No known vulnerabilities378.3K
8.24.4Aug 21, 20264 known vulnerabilities, worst rated critical336.4K
9.13.1latestNov 24, 2026No known vulnerabilities296.9K
9.12.2Nov 16, 2026No known vulnerabilities269.5K

Who is still on a vulnerable mongoose

53% of last week’s 8.4M mongoose downloads went to versions with known vulnerabilities.

From npm’s per-version download counts for the last 7 days, each version checked against OSV.dev. The versions checked cover over 99% of downloads.

Release lines

The newest release of each major line, from the registry. mongoose doesn’t publish support dates we can check.

LineNewest releaseReleased
99.13.1Nov 24, 2026
88.24.11Nov 23, 2026
77.8.14Nov 16, 2026
66.13.13Nov 16, 2026
55.13.23Dec 17, 2024
44.13.21Jul 12, 2020

Newest advisories

The 5 most recently published, with the versions each one affects.

  1. WarningCVE-2026-125116 on OSV.dev (opens in a new tab)GHSA-wr5m-5jph-8m96

    Mongoose: Discriminator key values matching inherited properties (e.g. __t: 'constructor') bypass schema casting and can poison collections

    Affects < 6.13.12; >= 7.0.0, < 7.8.13; >= 8.0.0, < 8.24.7; >= 9.0.0, < 9.11.4. Published Nov 10, 2026.

  2. CriticalCVE-2026-125117 on OSV.dev (opens in a new tab)GHSA-8332-j7wj-wjw4

    Mongoose walks into inherited properties when hydrating, setting, and merging, allowing overwrites of built-in functions (denial of service) and shared schema state

    Affects < 6.13.12; >= 7.0.0, < 7.8.13; >= 8.0.0, < 8.24.7; >= 9.0.0, < 9.11.4. Published Nov 10, 2026.

  3. WarningCVE-2026-125118 on OSV.dev (opens in a new tab)GHSA-6972-9mcm-vhwj

    Mongoose: Prototype pollution via Schema.prototype.virtual()

    Affects < 6.13.12; >= 7.0.0, < 7.8.13; >= 8.0.0, < 8.24.7; >= 9.0.0, < 9.11.4. Published Nov 10, 2026.

  4. CriticalCVE-2026-125119 on OSV.dev (opens in a new tab)GHSA-gg4r-jv3p-qx3c

    Mongoose: Connection-level sanitizeFilter not applied

    Affects >= 6.0.0, < 6.13.12; >= 7.0.0, < 7.8.13; >= 8.0.0, < 8.24.7; >= 9.0.0, < 9.11.4. Published Nov 10, 2026.

  5. CriticalCVE-2026-125120 on OSV.dev (opens in a new tab)GHSA-pcrw-h46h-c93h

    Mongoose: sanitizeFilter not applied on countDocuments

    Affects < 6.13.11; >= 7.0.0, < 7.8.12; >= 8.0.0, < 8.24.3; >= 9.0.0, < 9.9.2. Published Nov 10, 2026.

All 14 advisories are on OSV.dev (opens in a new tab).

Which mongoose do you have?

Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task for your coding agent. Free, no sign-up.

Check your whole repo

How this page is checked

StackPrism reads every OSV.dev advisory for mongoose, merges duplicates filed under several ids, and asks OSV.dev which ones affect each version listed. Releases and their dates come from deps.dev, downloads from npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.

Last checked against OSV.dev, CISA KEV, npm and deps.dev.