<?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>Mongoose (&gt;= 8.0.0, &lt; 8.24.7) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/mongoose--8.0.0--8.24.7/</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/products/mongoose--8.0.0--8.24.7/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></channel></rss>