Summary
NocoDB contains a server-side template injection vulnerability in Handlebars webhook helpers that can let authenticated Creator or Owner users execute JavaScript. If attacker-controlled template input is evaluated, this may allow operating-system command execution on the server.
Affected context
The issue affects NocoDB deployments before 2026.09.0 that use the vulnerable Handlebars webhook helpers. It becomes risky when a user with Creator or Owner permissions can supply input that is evaluated by those helpers.
Exploit preconditions
- Attack surface: Handlebars helpers used to process webhook templates
- Required access: Authenticated Creator or Owner permissions
- Trigger point: Evaluation of attacker-controlled input by a webhook template helper
- Why exploitation is possible: Unsafe property traversal can reach dynamic function construction and enable execution of attacker-controlled JavaScript
Why this happens
The vulnerability stems from template helpers that allow attacker-controlled property paths to traverse object properties and reach executable JavaScript functionality. This is a code injection flaw mapped to CWE-94: Improper Control of Generation of Code, because untrusted template input can influence code execution.
Potential impact
- An attacker may execute operating-system commands in the NocoDB server context.
- The NocoDB application and its accessible data could be compromised.
- An attacker could use the server's permissions to access connected services or resources.
General mitigation guidance
Defensive approaches focus on preventing template input from reaching executable functionality and reducing the authority of template processing.
- Use narrowly scoped template helpers that expose only explicitly permitted operations.
- Treat template values and property paths as untrusted, and avoid unrestricted property traversal or dynamic code construction.
- Apply strict validation and allowlists to values accepted for template processing.
- Run the application with least-privilege permissions and limit access to sensitive resources.
- Restrict which users can create or modify webhook templates.
How teams detect issues like this
- Use static analysis to identify template helpers that traverse user-controlled properties or invoke dynamic code-construction features.
- Review webhook template code for broad property access, unsafe helper behavior, and missing input validation.
- Enforce policies that restrict dynamic evaluation and require security review for changes to template-processing code.
- Monitor webhook activity and server behavior for unexpected command execution or unusual access to local and connected resources.
- Automated code review tools may help flag risky template and code-generation patterns.

