npmWorst: Critical14 advisories

mongoose: known vulnerabilities

mongoose has 14 reviewed security advisories in the GitHub Advisory Database — 5 critical, 5 high, 4 moderate. The most recent was published 2026-11-09. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the mongoose versions running across your servers, containers and images, and ranks what to patch first.

How to fix mongoose

Upgrade mongoose to a release at or above the fixed version shown for each advisory below. For npm:

npm install mongoose@9.11.4 (or run npm audit fix)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (14)

Mongoose: Prototype pollution via Schema.prototype.virtual() Moderate 6.5 CWE-1321 — Affected: from 9.0.0 up to 9.11.4. Fixed in 9.11.4. Published 2026-11-09. GHSA-6972-9mcm-vhwj · CVE-2026-125118
Mongoose walks into inherited properties when hydrating, setting, and merging, allowing overwrites of built-in functions (denial of service) and shared schema state High 8.2 CWE-1321 — Affected: from 9.0.0 up to 9.11.4. Fixed in 9.11.4. Published 2026-11-09. GHSA-8332-j7wj-wjw4 · CVE-2026-125117
Mongoose: Connection-level sanitizeFilter not applied High 7.5 CWE-943 — Affected: from 9.0.0 up to 9.11.4. Fixed in 9.11.4. Published 2026-11-09. GHSA-gg4r-jv3p-qx3c · CVE-2026-125119
Mongoose: sanitizeFilter not applied on countDocuments Critical 9.8 CWE-943 — Affected: from 9.0.0 up to 9.9.2. Fixed in 9.9.2. Published 2026-11-09. GHSA-pcrw-h46h-c93h · CVE-2026-125120
Mongoose: Discriminator key values matching inherited properties (e.g. __t: 'constructor') bypass schema casting and can poison collections Moderate 4.8 CWE-843 — Affected: from 9.0.0 up to 9.11.4. Fixed in 9.11.4. Published 2026-11-09. GHSA-wr5m-5jph-8m96 · CVE-2026-125116
Mongoose: Prototype pollution in mongoose update casting via __proto__-prefixed dotted path (Schema._getSchema/path getter) Moderate 6.5 CWE-1321 — Affected: from 9.0.0 up to 9.7.2. Fixed in 9.7.2. Published 2026-07-24. GHSA-664h-wqgq-64gw · CVE-2026-73562
Mongoose's Improper Sanitization of $nor in sanitizeFilter May Allow NoSQL Injection High 7.5 CWE-74 — Affected: from 9.0.0 up to 9.1.6. Fixed in 9.1.6. Published 2026-05-14. GHSA-wpg9-53fq-2r8h · CVE-2026-42334
Mongoose search injection vulnerability Critical 9.0 CWE-94 — Affected: before 6.13.6. Fixed in 6.13.6. Published 2025-01-15. GHSA-vg7j-7cwx-8wgw · CVE-2025-23061
Mongoose search injection vulnerability High 9.8 CWE-89 — Affected: from 3.6.0-rc0 up to 5.13.23. Fixed in 5.13.23. Published 2024-12-02. GHSA-m7xq-9374-9rvx · CVE-2024-53900
Mongoose Prototype Pollution vulnerability Critical 10.0 CWE-1321 — Affected: before 5.13.20. Fixed in 5.13.20. Published 2023-07-17. GHSA-9m93-w8w6-76hh · CVE-2023-3696
Mongoose Vulnerable to Prototype Pollution in Schema Object Critical 9.8 CWE-1321 — Affected: before 5.13.15. Fixed in 5.13.15. Published 2022-08-26. GHSA-h8hf-x3f4-xwgp · CVE-2022-24304
automattic/mongoose vulnerable to Prototype pollution via Schema.path High 7.0 CWE-1321 — Affected: before 5.13.15. Fixed in 5.13.15. Published 2022-07-28. GHSA-f825-f98c-gj3g · CVE-2022-2564
Remote Memory Exposure in mongoose Moderate 5.1 CWE-201 — Affected: from 4.0.0 up to 4.3.6. Fixed in 4.3.6. Published 2020-09-01. GHSA-r5xw-q988-826m
Improper Input Validation in Automattic Mongoose Critical 9.1 CWE-20 — Affected: before 4.13.21. Fixed in 4.13.21. Published 2019-10-10. GHSA-8687-vv9j-hgph · CVE-2019-17426

Find mongoose across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.