/

CVE-2026-130692

Severity:

HIGH RISK

(8.8)

Template Injection (CWE-94) in NocoDB Webhook Templates

CVE-2026-130692

Deferred

Vulnerability type

Category:

Server-Side Template Injection

CWE:

CWE-94

Impact:

Server-Side Code Execution

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

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.

Sources

SourceLink
github.comgithub.com/nocodb/nocodb/security/advisories/GHSA-2xx9-r3gm-mw87

Frequently asked

questions

The described attack requires an authenticated NocoDB user with the Creator role and access to supply content used in webhook templates.

Direct server access is not indicated as a prerequisite. The issue is triggered through webhook template processing, subject to the required account role and deployment configuration.

Restrict helper and property access to an explicit allowlist, and apply the same validation to all path formats. Prevent templates from reaching executable constructors.

Treat templates and their inputs as untrusted, limit template capabilities, enforce role-based controls, and use least-privilege runtime and network policies.

Find out what's already
exploitable in your codebase.