npm package

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

mongoose 4.13.19 has 8 known vulnerabilities (7 rated high or critical); 6.13.10 fixes all of them.

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

Known vulnerabilities
8
7 rated high or critical
Released
Jul 17, 2019
Latest is 9.11.2
Downloads last week
489
Under 1% of mongoose downloads
Licence
MIT
Pulls in
31 packages
Resolved by deps.dev

What to upgrade to

6.13.10 is the closest release with no known vulnerabilities.

  • 4.13.21

    Newest 4.x release. Released Jul 12, 2020.

    7 known vulnerabilities, worst rated warning
  • 6.13.10Upgrade to this

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

    No known vulnerabilities
  • 9.11.2

    Latest release. Released Oct 12, 2026.

    No known vulnerabilities

6.13.10 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 4.13.19

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-2022-2564 on OSV.dev (opens in a new tab)GHSA-f825-f98c-gj3gEPSS: top 2%

    automattic/mongoose vulnerable to Prototype pollution via Schema.path

    Fixed in 5.13.15. Published Jul 29, 2022.

  2. CriticalCVE-2025-23061 on OSV.dev (opens in a new tab)GHSA-vg7j-7cwx-8wgwEPSS: top 6%

    Mongoose search injection vulnerability

    Fixed in 6.13.6. Published Jan 15, 2025.

  3. CriticalCVE-2024-53900 on OSV.dev (opens in a new tab)GHSA-m7xq-9374-9rvxEPSS: top 10%

    Mongoose search injection vulnerability

    Fixed in 5.13.23. Published Dec 2, 2024.

  4. CriticalCVE-2019-17426 on OSV.dev (opens in a new tab)GHSA-8687-vv9j-hgphEPSS: top 24%

    Improper Input Validation in Automattic Mongoose

    Fixed in 4.13.21. Published Oct 22, 2019.

  5. CriticalCVE-2023-3696 on OSV.dev (opens in a new tab)GHSA-9m93-w8w6-76hhEPSS: top 33%

    Mongoose Prototype Pollution vulnerability

    Fixed in 5.13.20. Published Jul 17, 2023.

  6. 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 6.13.10. Published Jul 24, 2026.

  7. 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 6.13.9. Published May 5, 2026.

  8. CriticalCVE-2022-24304 on OSV.dev (opens in a new tab)GHSA-h8hf-x3f4-xwgp

    Mongoose Vulnerable to Prototype Pollution in Schema Object

    Fixed in 5.13.15. Published Aug 27, 2022.

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 4.13.19, 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.