Summary
NocoDB's webhook template handling can allow authenticated Creator-role users to execute server-side JavaScript through Handlebars helpers when array-form property paths bypass a prototype guard. Depending on the server's privileges and environment, this may enable operating-system command execution or exposure of process-internal values.
Affected context
The issue affects NocoDB deployments before 2026.10.1 where authenticated Creator-role users can supply content used in webhook templates. It involves Handlebars helper property-path handling: array-form paths can bypass a string-only prototype guard and reach the function constructor.
Exploit preconditions
- Attack surface: Webhook template processing in NocoDB
- Required access: An authenticated account with the Creator role
- Trigger point: Processing a webhook template containing a Handlebars helper property path
- Why exploitation is possible: Array-form paths can bypass a guard that checks string-form paths, potentially allowing access to the function constructor
Why this happens
The underlying issue is insufficient control over how template helpers resolve property paths. A guard limited to string-form paths can be bypassed when paths are provided in array form, allowing access to a powerful JavaScript constructor during template processing.
This maps to CWE-94: Improper Control of Generation of Code, because attacker-influenced template data can cause server-side code to be generated or executed.
Potential impact
- Authenticated users with the required role may execute JavaScript in the server process
- Attackers could run operating-system commands with the server's privileges
- Process-internal values may be exposed through outbound requests
- The application and connected systems could be compromised, depending on runtime permissions and network access
General mitigation guidance
Defensive approaches focus on treating template content as untrusted and preventing user-controlled paths from reaching executable capabilities.
Common patterns include:
- Restricting template helpers and property access to a minimal, explicit allowlist
- Applying consistent validation to every property-path representation, including arrays
- Disabling access to prototype properties and executable constructors
- Using non-evaluating template features and separating data from executable logic
- Limiting application privileges and controlling outbound network access
How teams detect issues like this
Review template helper implementations for differences in validation across string and array inputs, and look for paths that expose constructors or prototype properties. Static analysis and code review can flag dynamic property access, unsafe template evaluation, and user-controlled template content.
Runtime policies can restrict which roles may create or edit webhook templates, monitor unexpected outbound requests, and alert on suspicious child-process creation. Automated security checks can help enforce these rules in development workflows.

