Is mongoose 6.2 vulnerable?

npm · 12 releases from 6.2.0 to 6.2.11 · latest mongoose is 9.11.4 · checked 2 Nov 2026

Yes: 7 known advisories

Yes. mongoose 6.2.11, the last 6.2 release, is affected by 7 known security advisories (3 critical, 3 high, 1 medium), including CVE-2025-23061, CVE-2023-3696, CVE-2022-24304. Upgrade to 6.13.10 or later to fix all of them.

Upgrade with:npm install mongoose@6.13.10

Is your project affected?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Advisories affecting mongoose 6.2.11

  • MediumCVE-2026-73562GHSA-664h-wqgq-64gw24 Jul 2026

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

    Affected
    <6.13.10 · >=7.0.0 <7.8.10 · >=8.0.0 <8.24.1 · >=9.0.0 <9.7.2
    Fixed in
    6.13.10, 7.8.10, 8.24.1, 9.7.2
  • HighCVE-2026-42334GHSA-wpg9-53fq-2r8h5 May 2026

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

    Affected
    <6.13.9 · >=7.0.0 <7.8.9 · >=8.0.0 <8.22.1 · >=9.0.0 <9.1.6
    Fixed in
    6.13.9, 7.8.9, 8.22.1, 9.1.6
  • CriticalCVE-2025-23061GHSA-vg7j-7cwx-8wgw15 Jan 2025

    Mongoose search injection vulnerability

    Affected
    >=8.0.0-rc0 <8.9.5 · >=7.0.0-rc0 <7.8.4 · <6.13.6
    Fixed in
    6.13.6, 7.8.4, 8.9.5
  • HighCVE-2024-53900GHSA-m7xq-9374-9rvx2 Dec 2024

    Mongoose search injection vulnerability

    Affected
    >=8.0.0-rc0 <8.8.3 · >=7.0.0-rc0 <7.8.3 · >=6.0.0-rc0 <6.13.5 · >=3.6.0-rc0 <5.13.23
    Fixed in
    5.13.23, 6.13.5, 7.8.3, 8.8.3
  • CriticalCVE-2023-3696GHSA-9m93-w8w6-76hh17 Jul 2023

    Mongoose Prototype Pollution vulnerability

    Affected
    >=7.0.0 <7.3.3 · >=6.0.0 <6.11.3 · <5.13.20
    Fixed in
    5.13.20, 6.11.3, 7.3.3
  • CriticalCVE-2022-24304GHSA-h8hf-x3f4-xwgp27 Aug 2022

    Mongoose Vulnerable to Prototype Pollution in Schema Object

    Affected
    >=6.0.0 <6.4.6 · <5.13.15
    Fixed in
    5.13.15, 6.4.6
  • HighCVE-2022-2564GHSA-f825-f98c-gj3g29 Jul 2022

    automattic/mongoose vulnerable to Prototype pollution via Schema.path

    Affected
    >=6.0.0 <6.4.6 · <5.13.15
    Fixed in
    5.13.15, 6.4.6

Which of your client projects are still on mongoose 6.2?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact mongoose version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other mongoose versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the npm registry. Refreshed daily.