npm package

mongoose 8.24.6 vulnerabilities, and the version that fixes all of them

mongoose 8.24.6 has 4 known vulnerabilities (2 rated high or critical); 8.24.7 fixes all of them.

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

Known vulnerabilities
4
2 rated high or critical
Released
Oct 20, 2026
Latest is 9.13.1
Downloads last week
29.7K
Under 1% of mongoose downloads
Licence
MIT
Pulls in
18 packages
Resolved by deps.dev

What to upgrade to

8.24.7 is the closest release with no known vulnerabilities.

  • 8.24.7Upgrade to this

    Fixes all 4 known vulnerabilities. Released Oct 23, 2026.

    No known vulnerabilities
  • 8.24.11

    Newest 8.x release. Released Nov 23, 2026.

    No known vulnerabilities
  • 9.13.1

    Latest release. Released Nov 24, 2026.

    No known vulnerabilities

8.24.7 came out on Oct 23, 2026. A coding agent trained before then doesn’t know it exists, so it may suggest an older release. AI knowledge cutoff dates

Hand the fix to your coding agent

One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.

Findings

Every advisory for mongoose 8.24.6

Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.

  1. CriticalCVE-2026-125117 on OSV.dev (opens in a new tab)GHSA-8332-j7wj-wjw4EPSS: top 48%

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

    Fixed in 8.24.7. Published Nov 10, 2026.

  2. CriticalCVE-2026-125119 on OSV.dev (opens in a new tab)GHSA-gg4r-jv3p-qx3cEPSS: top 54%

    Mongoose: Connection-level sanitizeFilter not applied

    Fixed in 8.24.7. Published Nov 10, 2026.

  3. WarningCVE-2026-125118 on OSV.dev (opens in a new tab)GHSA-6972-9mcm-vhwjEPSS: top 55%

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

    Fixed in 8.24.7. Published Nov 10, 2026.

  4. WarningCVE-2026-125116 on OSV.dev (opens in a new tab)GHSA-wr5m-5jph-8m96EPSS: top 64%

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

    Fixed in 8.24.7. Published Nov 10, 2026.

Who is still on a vulnerable mongoose

54% of last week’s 8.3M 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.

Is mongoose the only one?

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

Check your whole repo

How this page is checked

StackPrism asks OSV.dev which advisories affect exactly mongoose 8.24.6, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.

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