npm package

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

mongoose 9.0.1 has 2 known vulnerabilities (1 rated high or critical); 9.7.2 fixes all of them.

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

Known vulnerabilities
2
1 rated high or critical
Released
Dec 5, 2025
Latest is 9.11.2
Downloads last week
6.3K
Under 1% of mongoose downloads
Licence
MIT
Pulls in
17 packages
Resolved by deps.dev

What to upgrade to

9.7.2 is the closest release with no known vulnerabilities.

  • 9.7.2Upgrade to this

    Fixes all 2 known vulnerabilities. Released Jun 22, 2026.

    No known vulnerabilities
  • 9.11.2

    Newest 9.x release and the latest release. Released Oct 12, 2026.

    No known vulnerabilities

9.7.2 came out on Jun 22, 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 9.0.1

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. WarningCVE-2026-73562 on OSV.dev (opens in a new tab)GHSA-664h-wqgq-64gwEPSS: top 59%

    Mongoose: Prototype pollution in mongoose update casting via __proto__-prefixed dotted path (Schema._getSchema/path getter)

    Fixed in 9.7.2. Published Jul 24, 2026.

  2. CriticalCVE-2026-42334 on OSV.dev (opens in a new tab)GHSA-wpg9-53fq-2r8hEPSS: top 62%

    Mongoose's Improper Sanitization of $nor in sanitizeFilter May Allow NoSQL Injection

    Fixed in 9.1.6. Published May 5, 2026.

Who is still on a vulnerable mongoose

45% of last week’s 6.8M 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 9.0.1, 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.