mongoose vulnerabilities
Mongoose MongoDB ODM
- Registry
- npm
- Latest
- 9.12.1
- License
- MIT
14 known advisories
The latest version, 9.12.1, is not affected by any of them. Projects on older versions may be.
npm install mongoose@9.12.1Is your project on an affected mongoose?
Look after several JavaScript apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Security advisories for mongoose
Mongoose: Discriminator key values matching inherited properties (e.g. __t: 'constructor') bypass schema casting and can poison collections
- Affected
- <6.13.12 · >=7.0.0 <7.8.13 · >=8.0.0 <8.24.7 · >=9.0.0 <9.11.4
- Fixed in
- 6.13.12, 7.8.13, 8.24.7, 9.11.4
Mongoose walks into inherited properties when hydrating, setting, and merging, allowing overwrites of built-in functions (denial of service) and shared schema state
- Affected
- <6.13.12 · >=7.0.0 <7.8.13 · >=8.0.0 <8.24.7 · >=9.0.0 <9.11.4
- Fixed in
- 6.13.12, 7.8.13, 8.24.7, 9.11.4
Mongoose: Prototype pollution via Schema.prototype.virtual()
- Affected
- <6.13.12 · >=7.0.0 <7.8.13 · >=8.0.0 <8.24.7 · >=9.0.0 <9.11.4
- Fixed in
- 6.13.12, 7.8.13, 8.24.7, 9.11.4
Mongoose: Connection-level sanitizeFilter not applied
- Affected
- >=6.0.0 <6.13.12 · >=7.0.0 <7.8.13 · >=8.0.0 <8.24.7 · >=9.0.0 <9.11.4
- Fixed in
- 6.13.12, 7.8.13, 8.24.7, 9.11.4
Mongoose: sanitizeFilter not applied on countDocuments
- Affected
- <6.13.11 · >=7.0.0 <7.8.12 · >=8.0.0 <8.24.3 · >=9.0.0 <9.9.2
- Fixed in
- 6.13.11, 7.8.12, 8.24.3, 9.9.2
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
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
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
Improper Input Validation in Automattic Mongoose
- Affected
- >=5.0.0 <5.7.5 · <4.13.21
- Fixed in
- 4.13.21, 5.7.5
Is your mongoose version vulnerable?
- mongoose 9.12No known advisories in 9.12.1
- mongoose 9.11No known advisories in 9.11.4
- mongoose 9.104 advisories in 9.10.4
- mongoose 9.94 advisories in 9.9.5
- mongoose 9.85 advisories in 9.8.1
- mongoose 9.75 advisories in 9.7.4
- mongoose 8.24No known advisories in 8.24.9
- mongoose 8.236 advisories in 8.23.1
- mongoose 8.226 advisories in 8.22.1
- mongoose 8.217 advisories in 8.21.1
- mongoose 8.207 advisories in 8.20.4
- mongoose 8.197 advisories in 8.19.4
- mongoose 7.8No known advisories in 7.8.13
- mongoose 7.79 advisories in 7.7.0
- mongoose 7.69 advisories in 7.6.13
- mongoose 7.59 advisories in 7.5.4
- mongoose 7.49 advisories in 7.4.5
- mongoose 7.39 advisories in 7.3.4
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.