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.
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.
Newest advisories
The 5 most recently published, with the versions each one affects.
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.
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.
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.
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.
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.
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.