# Mongoose

Mongoose is a MongoDB object modeling tool for Node.js that provides schema-based data modeling.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## CVE-2026-125120 - Mongoose: sanitizeFilter not applied on countDocuments

DevFeed: [CVE-2026-125120 - Mongoose: sanitizeFilter not applied on countDocuments](<https://devfeed.tech/articles/cve-2026-125120-mongoose-sanitizefilter-not-applied-on-countdocuments-124281.md>)

Original publisher: [Read original article](<https://cvefeed.io/vuln/detail/CVE-2026-125120>)

Author: CVEFEED.io; github.com

Published: 2026-11-09T23:17:22Z

Content type: news

Language: en

Sources: [Latest High/Critical Vulnerabilitiy Feed](<https://devfeed.tech/sources/latest-high-critical-vulnerabilitiy-feed.md>)

Topics: [Mongoose](<https://devfeed.tech/topics/mongoose.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [critical](<https://devfeed.tech/tags/critical.md>), [cve](<https://devfeed.tech/tags/cve.md>), [cve-2026-125120](<https://devfeed.tech/tags/cve-2026-125120.md>), [filter](<https://devfeed.tech/tags/filter.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [mongoose](<https://devfeed.tech/tags/mongoose.md>), [query](<https://devfeed.tech/tags/query.md>)

### AI overview

Before Mongoose versions 6.13.11, 7.8.12, 8.24.3, and 9.9.2, countDocuments() did not apply the configured sanitizeFilter defense. When an application enabled sanitizeFilter and passed attacker-controlled filter values, query operators could be processed as operators instead of literal values. The resulting count could include documents that should not match, potentially undermining authorization or application logic that relies on the count. Upgrade to one of the listed fixed versions.

### Source excerpt

CVE ID :CVE-2026-125120 Published : Nov. 9, 2026, 11:17 p.m. | 1 hour, 26 minutes ago Description :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 defense. An application that enables sanitizeFilter and passes attacker-controlled filter values to countDocuments() can therefore process query operator objects as operators rather than literal values, causing the count to include documents that should not match and potentially undermining authorization or application logic based on that count. This issue is fixed in versions 6.13.11, 7.8.12, 8.24.3, and 9.9.2. Severity: 9.8 | CRITICAL Visit the link for more details, such as CVSS details, affected products, timeline, and more...

## CVE-2026-125117 - Mongoose walks into inherited properties when hydrating, setting, and merging, allowing overwrites of built-in functions (denial of service) and shared schema state

DevFeed: [CVE-2026-125117 - Mongoose walks into inherited properties when hydrating, setting, and merging, allowing overwrites of built-in functions (denial of service) and shared schema state](<https://devfeed.tech/articles/cve-2026-125117-mongoose-walks-into-inherited-properties-when-hydrating-setting-and-merging-allowing-overwrites-of-built-in-functions-denial-of-service-and-shared-schema-124280.md>)

Original publisher: [Read original article](<https://cvefeed.io/vuln/detail/CVE-2026-125117>)

Author: CVEFEED.io; github.com

Published: 2026-11-09T23:17:22Z

Content type: news

Language: en

Sources: [Latest High/Critical Vulnerabilitiy Feed](<https://devfeed.tech/sources/latest-high-critical-vulnerabilitiy-feed.md>)

Topics: [Mongoose](<https://devfeed.tech/topics/mongoose.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [cve](<https://devfeed.tech/tags/cve.md>), [cve-2026-125117](<https://devfeed.tech/tags/cve-2026-125117.md>), [database](<https://devfeed.tech/tags/database.md>), [denial-of-service](<https://devfeed.tech/tags/denial-of-service.md>), [fail](<https://devfeed.tech/tags/fail.md>), [init](<https://devfeed.tech/tags/init.md>), [keys](<https://devfeed.tech/tags/keys.md>), [merge](<https://devfeed.tech/tags/merge.md>), [models](<https://devfeed.tech/tags/models.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [mongoose](<https://devfeed.tech/tags/mongoose.md>), [process](<https://devfeed.tech/tags/process.md>), [replacement](<https://devfeed.tech/tags/replacement.md>), [schema](<https://devfeed.tech/tags/schema.md>), [set](<https://devfeed.tech/tags/set.md>), [state](<https://devfeed.tech/tags/state.md>), [tostring](<https://devfeed.tech/tags/tostring.md>), [update](<https://devfeed.tech/tags/update.md>)

### AI overview

Before Mongoose 6.13.12, 7.8.13, 8.24.7, and 9.11.4, inherited-property traversal in document hydration, dotted-path setting, and update merging could let attacker-controlled keys overwrite reachable shared properties. One reported outcome is replacing Object.prototype.toString.call, causing queries on unrelated models to fail until process restart. With a strict:false subdocument, a controlled path passed to doc.set() could also reach $__schema and change validators or schema options used by later documents. Mongoose blocks __proto__, constructor, and prototype; the described issue instead affects properties on reachable shared objects.

### Source excerpt

CVE ID :CVE-2026-125117 Published : Nov. 9, 2026, 11:17 p.m. | 1 hour, 26 minutes ago Description :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 dotted paths in $__set, and merging update documents in utils.mergeClone. Attacker-controlled keys such as toString or valueOf can therefore cause Mongoose to write into shared built-in functions instead of an own property. A crafted document, Mixed path, non-strict document or subdocument, findOneAndReplace() replacement, chained update, or Query.prototype.merge() source can overwrite Object.prototype.toString.call, causing later queries on unrelated models to fail until the process restarts. Separately, when an attacker controls the dotted path passed to doc.set(path, value) for a subdocument configured with strict: false, descent through $__set can reach $__schema and alter shared validators or schema options for later documents. Mongoose already blocks __proto__, constructor, and prototype, so this issue overwrites properties on reachable shared objects rather than adding new properties directly to Object.prototype. This issue is fixed in versions 6.13.12, 7.8.13, 8.24.7, and 9.11.4. Severity: 8.2 | HIGH Visit the link for more details, such as CVSS details, affected products, timeline, and more...

## Mongoose: Preauth RCE and mTLS Bypass on Millions of Devices

DevFeed: [Mongoose: Preauth RCE and mTLS Bypass on Millions of Devices](<https://devfeed.tech/articles/mongoose-preauth-rce-and-mtls-bypass-on-millions-of-devices-41273.md>)

Original publisher: [Read original article](<https://www.evilsocket.net/2026/04/02/Mongoose-Preauth-Remote-Code-Execution-and-mTLS-Bypass/>)

Author: Simone Margaritelli

Published: 2026-04-01T22:00:00Z

Content type: article

Language: en

Sources: [Evil Socket](<https://devfeed.tech/sources/evilsocket.md>)

Topics: [Mongoose](<https://devfeed.tech/topics/mongoose.md>), [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>), [Security](<https://devfeed.tech/topics/security.md>), [Embedded Systems](<https://devfeed.tech/topics/embedded-systems.md>), [Internet of things](<https://devfeed.tech/topics/iot.md>), [C](<https://devfeed.tech/topics/c.md>), [cross-platform](<https://devfeed.tech/topics/cross-platform.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [MQTT](<https://devfeed.tech/topics/mqtt.md>), [WebSocket](<https://devfeed.tech/topics/websocket.md>)

Tags: [authentication-bypass](<https://devfeed.tech/tags/authentication-bypass.md>), [buffer-overflow](<https://devfeed.tech/tags/buffer-overflow.md>), [c](<https://devfeed.tech/tags/c.md>), [cesanta](<https://devfeed.tech/tags/cesanta.md>), [cross-platform](<https://devfeed.tech/tags/cross-platform.md>), [cve](<https://devfeed.tech/tags/cve.md>), [cve-2026-5244](<https://devfeed.tech/tags/cve-2026-5244.md>), [cve-2026-5245](<https://devfeed.tech/tags/cve-2026-5245.md>), [cve-2026-5246](<https://devfeed.tech/tags/cve-2026-5246.md>), [cybersecurity](<https://devfeed.tech/tags/cybersecurity.md>), [embedded](<https://devfeed.tech/tags/embedded.md>), [embedded-devices](<https://devfeed.tech/tags/embedded-devices.md>), [embedded-systems](<https://devfeed.tech/tags/embedded-systems.md>), [exploit](<https://devfeed.tech/tags/exploit.md>), [heap-overflow](<https://devfeed.tech/tags/heap-overflow.md>), [http](<https://devfeed.tech/tags/http.md>), [https](<https://devfeed.tech/tags/https.md>), [industrial-control](<https://devfeed.tech/tags/industrial-control.md>), [iot](<https://devfeed.tech/tags/iot.md>), [iot-security](<https://devfeed.tech/tags/iot-security.md>), [library](<https://devfeed.tech/tags/library.md>), [mdns](<https://devfeed.tech/tags/mdns.md>), [mips](<https://devfeed.tech/tags/mips.md>), [mongoose](<https://devfeed.tech/tags/mongoose.md>), [mqtt](<https://devfeed.tech/tags/mqtt.md>), [mtls](<https://devfeed.tech/tags/mtls.md>), [rce](<https://devfeed.tech/tags/rce.md>), [responsible-disclosure](<https://devfeed.tech/tags/responsible-disclosure.md>), [security](<https://devfeed.tech/tags/security.md>), [stack-overflow](<https://devfeed.tech/tags/stack-overflow.md>), [tls](<https://devfeed.tech/tags/tls.md>), [vulnerability-research](<https://devfeed.tech/tags/vulnerability-research.md>)

### AI overview

The article reports three independently exploitable vulnerabilities in Mongoose v7.20, an embedded C networking library used in IoT devices: an mTLS authentication bypass, a preauthentication heap-overflow RCE through client public-key parsing, and a preauthentication RCE through mDNS over UDP. Mongoose v7.21 reportedly includes patches for the issues, which were assigned CVE-2026-5244, CVE-2026-5245, and CVE-2026-5246.

### Source excerpt

So, Mongoose. I

## Build a CRUD app with Node.js

DevFeed: [Build a CRUD app with Node.js](<https://devfeed.tech/articles/build-a-crud-app-with-node-js-83306.md>)

Original publisher: [Read original article](<https://ngrok.com/blog/nodejs-crud-app-tutorial>)

Author: Scott McAllister

Published: 2023-10-20T00:00:00Z

Content type: tutorial

Language: en

Sources: [\[ngrok news\]](<https://devfeed.tech/sources/ngrok-news.md>)

Topics: [CRUD](<https://devfeed.tech/topics/crud.md>), [Express](<https://devfeed.tech/topics/express.md>), [Mongoose](<https://devfeed.tech/topics/mongoose.md>), [MERN](<https://devfeed.tech/topics/mern.md>), [Deno](<https://devfeed.tech/topics/deno.md>)

Tags: [app](<https://devfeed.tech/tags/app.md>), [crud](<https://devfeed.tech/tags/crud.md>), [database](<https://devfeed.tech/tags/database.md>), [express](<https://devfeed.tech/tags/express.md>), [ngrok](<https://devfeed.tech/tags/ngrok.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [react](<https://devfeed.tech/tags/react.md>), [sdks](<https://devfeed.tech/tags/sdks.md>)

### AI overview

A tutorial builds a vinyl record CRUD web app with a Node.js and Express REST API, MongoDB accessed through Mongoose, and a React frontend. It also demonstrates using ngrok to expose the app for development and testing.

### Source excerpt

Master the art of building a CRUD app with Node.js, Express, and React. Manage a database and deploy with ngrok.