mongoose
npm12 known CVEs affecting this package
Aggregated from OSV, GitHub Security Advisories, NVD, and vendor advisories. Each CVE links to its full detail page with vendor advisories, patches, fixed versions, and remediation guidance.
CVEs affecting mongoosepage 1 of 1
- CVE-2019-17426CRITICALCVSS 9.1EG 9.1fixed in 5.7.5 or 4.13.21, by version range2019-10-10
Automattic Mongoose through 5.7.4 allows attackers to bypass access control (in some applications) because any query object with a _bsontype attribute is ignored. For example, adding "_bsontype":"a" can sometimes interfere with a query fil…
- CVE-2022-2564CRITICALCVSS 9.8EG 9.8fixed in 6.4.6 or 5.13.15, by version range2022-07-28
Prototype Pollution in GitHub repository automattic/mongoose prior to 6.4.6.
- CVE-2023-3696CRITICALCVSS 9.8EG 10.0fixed in 7.3.3, 6.11.3 or 5.13.20, by version range2023-07-17
Prototype Pollution in GitHub repository automattic/mongoose prior to 7.3.4.
- CVE-2024-53900CRITICALCVSS 9.1EG 9.8fixed in 8.8.3, 7.8.3, 6.13.5 or 5.13.23, by version range2024-12-02
Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.
- CVE-2025-23061CRITICALCVSS 9.0EG 9.0fixed in 8.9.5, 7.8.4 or 6.13.6, by version range2025-01-15
Mongoose before 8.9.5 can improperly use a nested $where filter with a populate() match, leading to search injection. NOTE: this issue exists because of an incomplete fix for CVE-2024-53900.
- CVE-2026-125116MEDIUMCVSS 4.8EG 4.8fixed in 6.13.12, 7.8.13, 8.24.7 or 9.11.4, by version range2026-11-09
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.12, 7.8.13, 8.24.7, and 9.11.4, Mongoose uses attacker-controlled discriminator key values, including the default __t field, to index…
- CVE-2026-125117HIGHCVSS 8.2EG 8.2fixed in 6.13.12, 7.8.13, 8.24.7 or 9.11.4, by version range2026-11-09
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.12, 7.8.13, 8.24.7, and 9.11.4, Mongoose can descend into inherited properties while loading database documents in init(), setting do…
- CVE-2026-125118MEDIUMCVSS 6.5EG 6.5fixed in 6.13.12, 7.8.13, 8.24.7 or 9.11.4, by version range2026-11-09
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.12, 7.8.13, 8.24.7, and 9.11.4, Schema.prototype.virtual() builds nested virtual paths without applying the special-property validati…
- CVE-2026-125119HIGHCVSS 7.5EG 7.5fixed in 6.13.12, 7.8.13, 8.24.7 or 9.11.4, by version range2026-11-09
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. From 6.0.0 until 6.13.12, 7.8.13, 8.24.7, and 9.11.4, Mongoose stores the connection-level sanitizeFilter option in Connection.config, but Query.pr…
- CVE-2026-125120CRITICALCVSS 9.8EG 9.8fixed in 6.13.11, 7.8.12, 8.24.3 or 9.9.2, by version range2026-11-09
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.11, 7.8.12, 8.24.3, and 9.9.2, Mongoose countDocuments() does not apply the configured sanitizeFilter query selector injection defens…
- CVE-2026-42334HIGHCVSS 7.5EG 7.5fixed in 6.13.9, 7.8.9, 8.22.1 or 9.1.6, by version range2026-05-14
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.9, 7.8.9, 8.22.1, and 9.1.6, a vulnerability allows bypassing Mongoose’s sanitizeFilter query sanitization mechanism via the $nor o…
- CVE-2026-73562MEDIUMCVSS 6.5EG 6.5fixed in 6.13.10, 7.8.10, 8.24.1 or 9.7.2, by version range2026-08-13
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.10, 7.8.10, 8.24.1, and 9.7.2, passing a user-controlled update such as MyModel.updateOne(filter, req.body) can exploit Mongoose upda…
Check whether mongoose is used in your infrastructure
EchelonGraph scans your cloud and SBOMs to map every package to your actual deployments. See blast radius for mongoose CVEs against the assets you own.
Book a Demo →