Is mongoose 5.13 vulnerable?
npm · 24 releases from 5.13.0 to 5.13.23 · latest mongoose is 9.11.4 · checked 2 Nov 2026
Yes: 3 known advisories
Yes. mongoose 5.13.23, the last 5.13 release, is affected by 3 known security advisories (1 critical, 1 high, 1 medium), including CVE-2025-23061, CVE-2026-42334, CVE-2026-73562. 4 more affect earlier 5.13.x releases. Upgrade to 6.13.10 or later to fix all of them.
npm install mongoose@6.13.10Advisories affecting mongoose 5.13.23
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
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
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
Fixed within 5.13.x, affecting earlier releases
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
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
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
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 5.13?
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.