<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Cpe:2.3:a:mongoose:mongoose:*:*:*:*:*:*:*:* - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/cpes/cpe2.3amongoosemongoose/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Wed, 11 Nov 2026 02:05:28 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/cpes/cpe2.3amongoosemongoose/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Mongoose: Connection-level sanitizeFilter bypass (CVE-2026-125119)</title><link>https://feed.craftedsignal.io/briefs/2026-11-mongoose-sanitizefilter/</link><pubDate>Wed, 11 Nov 2026 02:05:28 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-11-mongoose-sanitizefilter/</guid><description>A bug in Mongoose allows MongoDB query selector injection due to the failure of connection-level sanitizeFilter configurations to apply, potentially enabling unauthorized record access.</description><content:encoded><![CDATA[<p>Mongoose fails to apply the sanitizeFilter security option when configured at the connection level via <code>mongoose.connect()</code> or <code>createConnection()</code>. While the connection reports the option as enabled, internal query casting logic fails to reference the configuration, rendering it ineffective. Applications relying on this setting to mitigate query selector injection remain vulnerable to attacks where malicious operators, such as <code>{ $ne: null }</code>, are passed into query filters. This issue affects Mongoose versions 6.x, 7.x, 8.x, and 9.x.</p>
<h2 id="impact">Impact</h2>
<p>Attackers can bypass application-level authentication and data filtering by injecting MongoDB query operators into user-controlled input fields. For instance, passing an operator object as a password or username value can cause the database to return documents that should otherwise be restricted.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade Mongoose to a patched version: v6.13.12, v7.8.13, v8.24.7, or v9.11.4.</li>
<li>Until patching is possible, shift from connection-level configuration to global or query-level sanitization:</li>
<li>Use global settings: <code>mongoose.set('sanitizeFilter', true)</code>.</li>
<li>Use query-level settings: <code>Model.find().sanitizeFilter(true)</code>.</li>
<li>Audit existing application logic for dependencies on connection-level security configurations.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>web-application</category><category>database-security</category><category>injection</category><category>mongoose</category><category>mongodb</category></item><item><title>Mongoose: countDocuments() sanitizeFilter bypass (CVE-2026-125120)</title><link>https://feed.craftedsignal.io/briefs/2026-11-mongoose-sanitizefilter-bypass/</link><pubDate>Wed, 11 Nov 2026 01:52:18 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-11-mongoose-sanitizefilter-bypass/</guid><description>Mongoose versions prior to the patches failed to apply the sanitizeFilter utility to countDocuments() queries, allowing potential NoSQL injection when user input is passed directly to the filter argument.</description><content:encoded><![CDATA[<p>Mongoose failed to apply the <code>sanitizeFilter</code> security utility to <code>countDocuments()</code> queries, which is designed to protect against query selector injection attacks. If an application passes unsanitized user-supplied input directly to the <code>countDocuments()</code> filter argument, an attacker may be able to inject malicious query selectors. This vulnerability is identified as CVE-2026-125120.</p>
<h2 id="impact">Impact</h2>
<p>Successful exploitation may allow an attacker to alter the query logic of database operations, potentially resulting in unauthorized data exposure or information disclosure depending on how the application handles the query results.</p>
<h2 id="recommendation">Recommendation</h2>
<p>Upgrade Mongoose to the following versions or later to ensure <code>sanitizeFilter</code> is applied correctly to <code>countDocuments()</code> queries:</p>
<ul>
<li>Upgrade to version ^9.9.2</li>
<li>Upgrade to version ^8.24.3</li>
<li>Upgrade to version ^7.8.12</li>
<li>Upgrade to version ^6.13.11</li>
</ul>
<p>If immediate upgrading is not possible, implement the provided middleware to enforce filtering on <code>countDocuments</code> calls as a temporary mitigation.</p>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category></item></channel></rss>