{"kind": "product", "path": "vulns/npm/mongoose", "name": "mongoose", "product": "mongoose", "ecosystem": "npm", "items": [{"id": "CVE-2026-73562", "noindex": false, "published": "2026-08-13T17:27:09.914Z", "modified": "2026-08-14T18:09:27.112Z", "cvss": 6.5, "cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L", "severity": "medium", "epss": 0.00503, "kev": false, "exploits": [], "stacks": [{"name": "node", "path": "vulns/stack/node", "slug": "node"}], "path": "vulns/cve-2026-73562", "title": "Mongoose: Prototype pollution in the update casting via __proto__-prefixed dotted path (Schema._getSchema/path getter)", "description": "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 update casting with a __proto__.x dotted path under $set. Schema.prototype.path and Schema.prototype._getPathType can treat inherited properties of schema.paths and schema.nested as schema types, allowing the casting process to set $fullPath and $parentSchemaDocArray on Object.prototype before throwing. This prototype pollution makes those properties visible on newly created objects and can cause application int", "references": ["https://github.com/Automattic/mongoose/security/advisories/GHSA-664h-wqgq-64gw", "https://github.com/Automattic/mongoose/commit/35a3f33bc9a0a28671f99e3c5010000425650d0f", "https://github.com/Automattic/mongoose/commit/7285466b860d3b511f8d07b2ab72656703ee707a"], "fixes": ["6.13.10", "7.8.10", "8.24.1", "9.7.2"], "products": [{"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}, {"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}, {"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}, {"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}]}, {"id": "CVE-2026-42334", "noindex": false, "published": "2026-05-14T18:03:43.196Z", "modified": "2026-05-14T18:18:06.935Z", "cvss": 7.5, "cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "severity": "high", "epss": 0.00274, "kev": false, "exploits": [], "stacks": [{"name": "node", "path": "vulns/stack/node", "slug": "node"}], "path": "vulns/cve-2026-42334", "title": "Mongoose: Improper Sanitization of $nor in sanitizeFilter May Allow NoSQL Injection", "description": "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 operator. When sanitizeFilter is enabled, Mongoose wraps query operators in $eq to neutralize them. However, prior to the fix, $nor was not included in the set of logical operators that are recursively sanitized. Because $nor accepts an array (like $and and $or), and arrays do not trigger hasDollarKeys(), malicious operators such as $ne, $gt, or $regex could be injected inside a $nor clause without being saniti", "references": ["https://github.com/Automattic/mongoose/security/advisories/GHSA-wpg9-53fq-2r8h", "https://nvd.nist.gov/vuln/detail/CVE-2026-42334"], "fixes": ["6.13.9", "7.8.9", "8.22.1", "9.1.6"], "products": [{"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}, {"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}, {"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}, {"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}]}, {"id": "CVE-2025-23061", "noindex": false, "published": "2025-01-15T00:00:00.000Z", "modified": "2025-01-15T15:11:21.314Z", "cvss": 9, "cvss_vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H", "severity": "critical", "epss": 0.07236, "kev": false, "exploits": ["nuclei"], "stacks": [{"name": "node", "path": "vulns/stack/node", "slug": "node"}], "path": "vulns/cve-2025-23061", "title": "CVE-2025-23061", "description": "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.", "references": ["https://www.npmjs.com/package/mongoose?activeTab=versions", "https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md", "https://github.com/Automattic/mongoose/releases/tag/8.9.5"], "fixes": ["6.13.6", "7.8.4", "8.9.5"], "products": [{"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}, {"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}, {"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}]}, {"id": "CVE-2024-53900", "noindex": false, "published": "2024-12-02T00:00:00.000Z", "modified": "2025-01-06T17:43:08.256Z", "cvss": 9.1, "cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N", "severity": "critical", "epss": 0.03981, "kev": false, "exploits": ["nuclei"], "stacks": [{"name": "node", "path": "vulns/stack/node", "slug": "node"}], "path": "vulns/cve-2024-53900", "title": "CVE-2024-53900", "description": "Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.", "references": ["https://www.npmjs.com/package/mongoose?activeTab=versions", "https://github.com/Automattic/mongoose/releases", "https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md"], "fixes": ["5.13.23", "6.13.5", "7.8.3", "8.8.3"], "products": [{"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}, {"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}, {"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}, {"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}]}, {"id": "CVE-2023-3696", "noindex": false, "published": "2023-07-17T00:00:21.160Z", "modified": "2024-10-30T14:16:54.986Z", "cvss": 10, "cvss_vector": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:H", "severity": "critical", "epss": 0.01208, "kev": false, "exploits": [], "stacks": [{"name": "node", "path": "vulns/stack/node", "slug": "node"}], "path": "vulns/cve-2023-3696", "title": "Prototype Pollution in automattic/mongoose", "description": "Prototype Pollution in GitHub repository automattic/mongoose prior to 7.3.4.", "references": ["https://huntr.dev/bounties/1eef5a72-f6ab-4f61-b31d-fc66f5b4b467", "https://github.com/automattic/mongoose/commit/305ce4ff789261df7e3f6e72363d0703e025f80d", "https://nvd.nist.gov/vuln/detail/CVE-2023-3696"], "fixes": ["5.13.20", "6.11.3", "7.3.3"], "products": [{"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}, {"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}, {"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}]}, {"id": "CVE-2022-24304", "noindex": false, "published": "2022-08-27T00:00:54Z", "modified": "2024-04-22T23:44:02.962119Z", "cvss": 9.8, "cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "severity": "critical", "epss": null, "kev": false, "exploits": [], "stacks": [{"name": "node", "path": "vulns/stack/node", "slug": "node"}], "path": "vulns/cve-2022-24304", "title": "Mongoose Vulnerable to Prototype Pollution in Schema Object", "description": "### Description\nMongoose is a MongoDB object modeling tool designed to work in an asynchronous environment.\n\nAffected versions of this package are vulnerable to Prototype Pollution. The `Schema.path()` function is vulnerable to prototype pollution when setting the `schema` object. This vulnerability allows modification of the Object prototype and could be manipulated into a Denial of Service (DoS) attack.\n\n### Proof of Concept\n```js\n// poc.js\nconst mongoose = require('mongoose');\nconst schema = new mongoose.Schema();\n\nmalicious_payload = '__proto__.toString'\n\nschema.path(malicious_payload, [String])\n\nx = {}\nconsole.log(x.toString()) // crashe", "references": ["https://nvd.nist.gov/vuln/detail/CVE-2022-24304", "https://github.com/Automattic/mongoose/issues/12085", "https://github.com/Automattic/mongoose/commit/6a197316564742c0422309e1b5fecfa4faec126e"], "fixes": ["5.13.15", "6.4.6"], "products": [{"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}, {"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}]}, {"id": "CVE-2022-2564", "noindex": false, "published": "2022-07-28T15:21:20.000Z", "modified": "2024-11-20T16:14:46.191Z", "cvss": 7, "cvss_vector": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H", "severity": "high", "epss": 0.31301, "kev": false, "exploits": [], "stacks": [{"name": "node", "path": "vulns/stack/node", "slug": "node"}], "path": "vulns/cve-2022-2564", "title": "Prototype Pollution in automattic/mongoose", "description": "Prototype Pollution in GitHub repository automattic/mongoose prior to 6.4.6.", "references": ["https://github.com/Automattic/mongoose/blob/51e758541763b6f14569744ced15cc23ab8b50c6/lib/schema.js#L88-L141", "https://huntr.dev/bounties/055be524-9296-4b2f-b68d-6d5b810d1ddd", "https://github.com/automattic/mongoose/commit/a45cfb6b0ce0067ae9794cfa80f7917e1fb3c6f8"], "fixes": ["5.13.15", "6.4.6"], "products": [{"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}, {"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}]}, {"id": "GHSA-r5xw-q988-826m", "noindex": false, "published": "2020-09-01T19:39:37Z", "modified": "2023-12-07T22:05:28Z", "cvss": 5.1, "cvss_vector": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N", "severity": "medium", "epss": null, "kev": false, "exploits": [], "stacks": [{"name": "node", "path": "vulns/stack/node", "slug": "node"}], "path": "vulns/ghsa-r5xw-q988-826m", "title": "Remote Memory Exposure in mongoose", "description": "Versions of `mongoose` before 4.3.6, 3.8.39 are vulnerable to remote memory exposure.\n\nTrying to save a number to a field of type Buffer on the affected mongoose versions allocates a chunk of uninitialized memory and stores it in the database.\n\n\n## Recommendation\n\nUpdate to version 4.3.6, 3.8.39 or later.", "references": ["https://github.com/Automattic/mongoose/issues/3764", "https://gist.github.com/ChALkeR/440bc3dfcbd9b6da75c3", "https://gist.github.com/ChALkeR/d4a8055625221b6e65f0"], "fixes": ["3.8.39", "4.3.6"], "products": [{"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}, {"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}]}, {"id": "CVE-2019-17426", "noindex": false, "published": "2019-10-10T00:35:17.000Z", "modified": "2024-08-05T01:40:15.456Z", "cvss": 9.1, "cvss_vector": "", "severity": "critical", "epss": 0.01497, "kev": false, "exploits": [], "stacks": [{"name": "node", "path": "vulns/stack/node", "slug": "node"}], "path": "vulns/cve-2019-17426", "title": "CVE-2019-17426", "description": "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 filter. NOTE: this CVE is about Mongoose's failure to work around this _bsontype special case that exists in older versions of the bson parser (aka the mongodb/js-bson project).", "references": ["https://github.com/Automattic/mongoose/issues/8222", "https://github.com/Automattic/mongoose/commit/f3eca5b94d822225c04e96cbeed9f095afb3c31c", "https://nvd.nist.gov/vuln/detail/CVE-2019-17426"], "fixes": ["4.13.21", "5.7.5"], "products": [{"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}, {"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}]}], "total": 9, "unknown_count": 0, "release_unconfirmed": false, "page": 1, "pages": 1, "filtered": false, "noindex": false, "filters": {}, "page_size": 20, "products": [{"name": "mongoose", "path": "vulns/npm/mongoose", "ecosystem": "npm"}], "stacks": [{"name": "system", "path": "vulns/stack/system", "slug": "system"}, {"name": "web", "path": "vulns/stack/web", "slug": "web"}, {"name": "php", "path": "vulns/stack/php", "slug": "php"}, {"name": "python", "path": "vulns/stack/python", "slug": "python"}, {"name": "node", "path": "vulns/stack/node", "slug": "node"}, {"name": "database", "path": "vulns/stack/database", "slug": "database"}, {"name": "containers", "path": "vulns/stack/containers", "slug": "containers"}, {"name": "network", "path": "vulns/stack/network", "slug": "network"}, {"name": "applications", "path": "vulns/stack/applications", "slug": "applications"}], "versions": [], "stats": {"recent": 0, "kev": 0}, "lastmod": "2026-08-14T18:09:27.112Z", "early_advisories": [], "license": "Vous pouvez librement utiliser la sélection de PatchFirst et nos ajouts (priorités, alertes précoces, textes, synthèses et agrégats) pour vos propres besoins, y compris les activités internes de votre entreprise. La revente, la distribution commerciale et la mise en miroir massive de cette sélection ou de ces ajouts nécessitent un accord écrit avec l’opérateur. Lors de toute utilisation ou publication de la sélection ou de nos ajouts, citez PatchFirst (https://patchfirst.dev/vulns/) avec ce lien vers la page du flux de votre région. Les enregistrements originaux des sources ouvertes restent soumis à leurs licences et conditions respectives. Ces conditions ne limitent pas vos droits sur les données originales, que vous pouvez obtenir directement auprès de ces sources.", "terms_url": "https://patchfirst.dev/fr/vulns/#feed-terms", "attribution": {"name": "PatchFirst", "url": "https://patchfirst.dev/vulns/"}, "source_changes": "PatchFirst sélectionne, normalise et combine les enregistrements ; des synthèses et des traductions peuvent être ajoutées. Les actualités sont accompagnées d’un lien vers la source originale dans chaque entrée.", "sources": [{"id": "cve", "name": "CVE List / CVE.org", "url": "https://www.cve.org/", "license": "CVE Terms of Use", "terms_url": "https://www.cve.org/Legal/TermsOfUse", "notice": "Copyright © 1999–2021, The MITRE Corporation. LICENSE Submissions : For all materials you submit to the Common Vulnerabilities and Exposures (CVE™), you hereby grant to The MITRE Corporation (MITRE) and all CVE Numbering Authorities (CNAs) a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute such materials and derivative works. Unless required by applicable law or agreed to in writing, you provide such materials on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. CVE Usage : MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy. DISCLAIMERS ALL DOCUMENTS AND THE INFORMATION CONTAINED THEREIN PROVIDED BY MITRE ARE PROVIDED ON AN \"AS IS\" BASIS AND THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE MITRE CORPORATION, ITS BOARD OF TRUSTEES, OFFICERS, AGENTS, AND EMPLOYEES, DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION THEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE."}, {"id": "osv", "name": "OSV", "url": "https://osv.dev/", "terms_url": "https://google.github.io/osv.dev/data/", "terms": "Les licences des bases d’origine varient ; voir le catalogue des sources."}, {"id": "kev", "name": "CISA KEV", "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog", "license": "CC0-1.0", "terms_url": "https://github.com/cisagov/kev-data/blob/develop/LICENSE"}, {"id": "epss", "name": "FIRST EPSS", "url": "https://www.first.org/epss/", "terms_url": "https://www.first.org/epss/faq", "terms": "Évaluations publiques gratuites ; mention de la source demandée (FIRST EPSS, évaluations produites par Empirical Security)."}, {"id": "github-advisory", "name": "GitHub Advisory Database", "url": "https://github.com/advisories", "license": "CC-BY-4.0", "terms_url": "https://github.com/github/advisory-database/blob/main/LICENSE.md"}, {"id": "exploitdb", "name": "Exploit-DB", "url": "https://www.exploit-db.com/", "license": "GPL-2.0", "terms_url": "https://gitlab.com/exploit-database/exploitdb/-/blob/main/LICENSE.md"}, {"id": "metasploit", "name": "Metasploit", "url": "https://github.com/rapid7/metasploit-framework", "license": "BSD-3-Clause", "terms_url": "https://github.com/rapid7/metasploit-framework/blob/master/LICENSE", "notice": "Copyright (c) 2006-2026, Rapid7, Inc.\nLicense: BSD-3-clause\n Redistribution and use in source and binary forms, with or without modification,\n are permitted provided that the following conditions are met:\n .\n * Redistributions of source code must retain the above copyright notice,\n this list of conditions and the following disclaimer.\n .\n * Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n .\n * Neither the name of Rapid7, Inc. nor the names of its contributors\n may be used to endorse or promote products derived from this software\n without specific prior written permission.\n .\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\n ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\n ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."}, {"id": "nuclei", "name": "Nuclei Templates", "url": "https://github.com/projectdiscovery/nuclei-templates", "license": "MIT", "terms_url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/LICENSE.md", "notice": "MIT License\n\nCopyright (c) 2025 ProjectDiscovery, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."}, {"id": "linux-kernel", "name": "Linux kernel releases", "url": "https://www.kernel.org/", "license": "CC-BY-SA-4.0", "terms_url": "https://www.kernel.org/legal.html", "notice": "Copyright (C) 1997-2014 by The Linux Kernel Organization, Inc."}]}