mongoose vulnerabilities

Mongoose MongoDB ODM

Registry
npm
Latest
9.11.3
License
MIT

9 known advisories

The latest version, 9.11.3, is not affected by any of them. Projects on older versions may be.

Update to the latest version:npm install mongoose@9.11.3

Security advisories for mongoose

  • MediumGHSA-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
  • HighGHSA-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
  • CriticalGHSA-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
  • HighGHSA-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
  • CriticalGHSA-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
  • CriticalGHSA-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
  • HighGHSA-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
  • MediumGHSA-r5xw-q988-826m1 Sept 2020

    Remote Memory Exposure in mongoose

    Affected
    >=3.5.5 <3.8.39 · >=4.0.0 <4.3.6
    Fixed in
    3.8.39, 4.3.6
  • CriticalGHSA-8687-vv9j-hgph22 Oct 2019

    Improper Input Validation in Automattic Mongoose

    Affected
    >=5.0.0 <5.7.5 · <4.13.21
    Fixed in
    4.13.21, 5.7.5

Which of your client projects still run an old mongoose?

NPMscan reads the package-lock.json, yarn.lock and pnpm-lock.yaml in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other npm packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the npm registry.