Server: Budibase has nonymous NoSQL operator injection via published-app query templates (CVE-2026-54350)
Budibase server versions up to 3.39.0 contain a critical NoSQL operator injection vulnerability (CVE-2026-54350) in the handling of published-app query templates. This flaw allows unauthenticated users to bypass authentication and CSRF protections when queries are set to the PUBLIC role, enabling them to read or modify all documents in various NoSQL data sources such as MongoDB, CouchDB, Elasticsearch, DynamoDB-PartiQL, or REST JSON collections. The vulnerability arises from unsafe substitution of user input into JSON query bodies without proper escaping, combined with insufficient input validation and authorization checks. SQL datasources are not affected. A patch is available for this issue.
AI Analysis
Technical Summary
The vulnerability in Budibase server (<= 3.39.0) occurs because the function enrichContext directly substitutes user-supplied parameters into raw JSON query bodies without JSON string escaping, followed by JSON.parse, which allows attacker-controlled fields to be injected into NoSQL query filters. The input validation only blocks Handlebars markers but does not prevent JSON metacharacters, enabling injection of NoSQL operators. The queries with role PUBLIC bypass authentication and CSRF protections, allowing unauthenticated attackers to execute arbitrary read (find) and write (updateMany) operations on the backing NoSQL data sources. This affects MongoDB, CouchDB, Elasticsearch, DynamoDB-PartiQL, and REST JSON collections but not SQL datasources. The vulnerability is confirmed in version 3.39.0 and earlier. A patch is available to fix this issue.
Potential Impact
An unauthenticated attacker can exploit this vulnerability by sending specially crafted requests to publicly published Budibase apps with queries set to the PUBLIC role. This allows the attacker to read all documents from the underlying NoSQL data sources and, if a PUBLIC write query is published, modify every document in the collection. This results in a complete confidentiality and integrity breach of the affected data. The vulnerability does not affect SQL datasources. The CVSS v3.1 score is 10.0 (critical), reflecting network attack vector, no privileges required, no user interaction, scope change, and high confidentiality and integrity impact.
Mitigation Recommendations
A patch is available for Budibase server versions up to 3.39.0. Users should upgrade to a fixed version above 3.39.0 as soon as possible. Until patched, avoid setting non-SQL queries (MongoDB, CouchDB, Elasticsearch, DynamoDB-PartiQL, REST JSON) to the PUBLIC role in published apps to prevent unauthenticated access. The vendor advisory confirms the availability of an official fix. No other mitigations are indicated or effective given the nature of the vulnerability.
Server: Budibase has nonymous NoSQL operator injection via published-app query templates (CVE-2026-54350)
Description
Budibase server versions up to 3.39.0 contain a critical NoSQL operator injection vulnerability (CVE-2026-54350) in the handling of published-app query templates. This flaw allows unauthenticated users to bypass authentication and CSRF protections when queries are set to the PUBLIC role, enabling them to read or modify all documents in various NoSQL data sources such as MongoDB, CouchDB, Elasticsearch, DynamoDB-PartiQL, or REST JSON collections. The vulnerability arises from unsafe substitution of user input into JSON query bodies without proper escaping, combined with insufficient input validation and authorization checks. SQL datasources are not affected. A patch is available for this issue.
CVSS v3.1
Score 10.0critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Budibase server (<= 3.39.0) occurs because the function enrichContext directly substitutes user-supplied parameters into raw JSON query bodies without JSON string escaping, followed by JSON.parse, which allows attacker-controlled fields to be injected into NoSQL query filters. The input validation only blocks Handlebars markers but does not prevent JSON metacharacters, enabling injection of NoSQL operators. The queries with role PUBLIC bypass authentication and CSRF protections, allowing unauthenticated attackers to execute arbitrary read (find) and write (updateMany) operations on the backing NoSQL data sources. This affects MongoDB, CouchDB, Elasticsearch, DynamoDB-PartiQL, and REST JSON collections but not SQL datasources. The vulnerability is confirmed in version 3.39.0 and earlier. A patch is available to fix this issue.
Potential Impact
An unauthenticated attacker can exploit this vulnerability by sending specially crafted requests to publicly published Budibase apps with queries set to the PUBLIC role. This allows the attacker to read all documents from the underlying NoSQL data sources and, if a PUBLIC write query is published, modify every document in the collection. This results in a complete confidentiality and integrity breach of the affected data. The vulnerability does not affect SQL datasources. The CVSS v3.1 score is 10.0 (critical), reflecting network attack vector, no privileges required, no user interaction, scope change, and high confidentiality and integrity impact.
Mitigation Recommendations
A patch is available for Budibase server versions up to 3.39.0. Users should upgrade to a fixed version above 3.39.0 as soon as possible. Until patched, avoid setting non-SQL queries (MongoDB, CouchDB, Elasticsearch, DynamoDB-PartiQL, REST JSON) to the PUBLIC role in published apps to prevent unauthenticated access. The vendor advisory confirms the availability of an official fix. No other mitigations are indicated or effective given the nature of the vulnerability.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-8qv3-p479-cj62
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-54350"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- CRITICAL
- Cvss Version
- 3.1
Threat ID: 6a7cd3e1bf8831d53917fe47
Added to database: 08/12/2026, 20:13:21 UTC
Last enriched: 08/12/2026, 21:11:27 UTC
Last updated: 08/13/2026, 01:33:04 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.