<?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/"><channel><title>Budibase (&lt; 3.39.12) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/budibase--3.39.12/</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>Fri, 03 Jul 2026 11:21:33 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/budibase--3.39.12/feed.xml" rel="self" type="application/rss+xml"/><item><title>Budibase NoSQL Operator Injection (CVE-2026-54350)</title><link>https://feed.craftedsignal.io/briefs/2026-07-budibase-nosql-injection/</link><pubDate>Fri, 03 Jul 2026 11:21:33 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-budibase-nosql-injection/</guid><description>An unauthenticated attacker can exploit CVE-2026-54350, a NoSQL operator injection vulnerability in Budibase server versions prior to 3.39.12, by injecting malicious parameters into public-facing query templates, enabling them to bypass intended query filters, read all documents including sensitive information, and modify all documents within affected collections with a single HTTP request.</description><content:encoded><![CDATA[<p>A critical NoSQL operator injection vulnerability, tracked as CVE-2026-54350, affects Budibase server versions up to 3.39.0 (and npm package <code>@budibase/server</code> versions <code>&lt; 3.39.12</code>). This flaw stems from improper input validation and handling within the <code>enrichContext</code> and <code>validateQueryInputs</code> functions when processing query templates for MongoDB, CouchDB, Elasticsearch, DynamoDB-PartiQL, or REST-with-JSON-body datasources. An unauthenticated attacker can craft a malicious JSON payload in a parameter value that contains specific JSON metacharacters. When this payload is substituted into a raw JSON query body and subsequently parsed, it can overwrite the intended query logic, such as a <code>{name: &quot;...&quot;}</code> filter being replaced by <code>{name: {$exists: true}}</code>. This allows the attacker to read and modify entire database collections, including sensitive data, using a single HTTP request to a publicly accessible API endpoint, without requiring authentication or bypassing CSRF protections.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker identifies a published Budibase application that uses a non-SQL datasource (MongoDB, CouchDB, Elasticsearch, DynamoDB-PartiQL, or REST-with-JSON-body) and has a <code>PUBLIC</code> role assigned to at least one query (e.g., <code>GetUserByName</code>).</li>
<li>The attacker, unauthenticated, sends an HTTP <code>POST</code> request to <code>/api/v2/queries/:queryId</code> for the identified public read query, including an <code>x-budibase-app-id</code> header.</li>
<li>The request body contains a JSON payload with the <code>parameters</code> field where a parameter (e.g., <code>name</code>) is injected with a crafted string like <code>x&quot;,\&quot;name\&quot;:{\&quot;$exists\&quot;:true},\&quot;$comment\&quot;:\&quot;audit&quot;</code>.</li>
<li>Budibase's <code>enrichContext</code> function substitutes this raw parameter value directly into the query's JSON body string without proper JSON-string escaping.</li>
<li>The subsequent <code>JSON.parse</code> operation on the malformed string results in a parsed filter object (e.g., <code>collection.find()</code>) where the attacker's injected <code>$exists:true</code> clause overrides the legitimate filter, effectively widening the scope to return all documents.</li>
<li>The Budibase server returns all documents from the collection, including sensitive fields not intended for public exposure (e.g., <code>password_hash</code>, <code>secret</code>), to the unauthenticated attacker.</li>
<li>If a <code>PUBLIC</code> write query (e.g., <code>updateMany</code>) is available, the attacker can similarly inject a payload to widen the <code>filter</code> scope, causing the <code>updateMany</code> operation to affect all documents in the collection, leading to widespread data modification or destruction.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-54350 allows an unauthenticated visitor to conduct broad data breaches and integrity compromises. This includes the anonymous reading of every document within any MongoDB, CouchDB, Elasticsearch, DynamoDB-PartiQL, or REST-with-JSON-body collection exposed via a <code>PUBLIC</code> query. Attackers can exfiltrate sensitive data such as <code>password_hash</code>, <code>secret</code>, <code>api_token</code>, and <code>mfa_secret</code> from columns not intended to be returned. Furthermore, where a <code>PUBLIC</code> <code>update</code>, <code>delete</code>, or <code>aggregate</code> query exists, attackers can anonymously modify or destroy every document in that collection, extending beyond the original builder's intended single-document scope. All of this can be achieved with a single HTTP request, bypassing session and CSRF protections.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li><strong>Patch CVE-2026-54350 immediately:</strong> Upgrade your Budibase server instances to version 3.39.12 or newer to remediate the vulnerability. Refer to the official Budibase release notes and patching guidance.</li>
<li><strong>Deploy the provided Sigma rule:</strong> Implement the <code>Detect CVE-2026-54350 Exploitation</code> Sigma rule in your SIEM to identify attempts at NoSQL operator injection against your Budibase applications.</li>
<li><strong>Monitor webserver logs:</strong> Specifically look for <code>POST</code> requests to <code>/api/v2/queries/:queryId</code> containing JSON body parameters with suspicious injection patterns (e.g., <code>&quot;,\\\&quot;$exists\\\&quot;:true&quot;</code>) in <code>cs-uri-query</code> or equivalent fields.</li>
<li><strong>Audit public queries:</strong> Review all <code>PUBLIC</code> role-assigned queries in your Budibase applications, especially those interacting with MongoDB, CouchDB, Elasticsearch, DynamoDB-PartiQL, or REST-with-JSON-body datasources, to ensure sensitive data is not inadvertently exposed or modifiable.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>nosql-injection</category><category>web-vulnerability</category><category>budibase</category><category>data-exfiltration</category><category>data-manipulation</category><category>critical-vulnerability</category><category>api-exploitation</category></item></channel></rss>